Instabug / instabug_flutter_modular

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Instabug Flutter Modular

Pub Twitter

An add-on for the Instabug Flutter SDK that provides screen loading support for Flutter Modular v5.

Installation

  1. Add instabug_flutter_modular to your pubspec.yaml file.
dependencies:
  instabug_flutter_modular:
  1. Install the package by running the following command.
flutter pub get

Usage

  1. Wrap your AppParentModule inside InstabugModule:
void main() {
  //...
  
  runApp(
    ModularApp(
      module: InstabugModule(AppModule()),
      child: const MyApp(),
    ),
  );
}
  1. Add InstabugNavigatorObserver to your navigation observers list:
@override
Widget build(BuildContext context) {
  return MaterialApp.router(
    routeInformationParser: Modular.routeInformationParser,
    routerDelegate: Modular.routerDelegate
      ..setObservers([InstabugNavigatorObserver()]),

    // ...
  );
}

About

License:MIT License


Languages

Language:Dart 88.9%Language:Ruby 4.8%Language:Swift 2.3%Language:Java 2.3%Language:Shell 1.2%Language:Kotlin 0.5%Language:Objective-C 0.1%