instabug_flutter_modular 1.0.0 copy "instabug_flutter_modular: ^1.0.0" to clipboard
instabug_flutter_modular: ^1.0.0 copied to clipboard

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

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()]),

    // ...
  );
}
1
likes
150
pub points
0%
popularity

Publisher

unverified uploader

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

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_modular, instabug_flutter, meta

More

Packages that depend on instabug_flutter_modular