https://github.com/instabug/instabug_flutter_modular
https://github.com/instabug/instabug_flutter_modular
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/instabug/instabug_flutter_modular
- Owner: Instabug
- License: mit
- Created: 2024-05-08T16:49:52.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-18T14:29:40.000Z (7 months ago)
- Last Synced: 2025-03-07T15:46:22.200Z (4 months ago)
- Language: Dart
- Size: 101 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Instabug Flutter Modular
[](https://pub.dev/packages/instabug_flutter_modular)
[](https://twitter.com/Instabug)An add-on for the [Instabug Flutter SDK](https://github.com/Instabug/Instabug-Flutter) that provides screen loading support for [Flutter Modular](https://pub.dev/packages/flutter_modular) v5.
## Installation
1. Add `instabug_flutter_modular` to your `pubspec.yaml` file.
```yaml
dependencies:
instabug_flutter_modular:
```2. Install the package by running the following command.
```sh
flutter pub get
```## Usage
1. Wrap your `AppParentModule` inside `InstabugModule`:
```dart
void main() {
//...
runApp(
ModularApp(
module: InstabugModule(AppModule()),
child: const MyApp(),
),
);
}
```2. Add `InstabugNavigatorObserver` to your navigation observers list:
```dart
@override
Widget build(BuildContext context) {
return MaterialApp.router(
routeInformationParser: Modular.routeInformationParser,
routerDelegate: Modular.routerDelegate
..setObservers([InstabugNavigatorObserver()]),// ...
);
}
```