luciq_flutter_modular 2.0.0
luciq_flutter_modular: ^2.0.0 copied to clipboard
An add-on for the Luciq Flutter SDK that provides screen loading support for Flutter Modular v5.
Luciq Flutter Modular #
An add-on for the Luciq Flutter SDK that provides screen loading support for Flutter Modular v5.
Installation #
- Add
luciq_flutter_modularto yourpubspec.yamlfile.
dependencies:
luciq_flutter_modular:
- Install the package by running the following command.
flutter pub get
Usage #
- Wrap your
AppParentModuleinsideLuciqModule:
void main() {
//...
runApp(
ModularApp(
module: LuciqModule(AppModule()),
child: const MyApp(),
),
);
}
- Add
LuciqNavigatorObserverto your navigation observers list:
@override
Widget build(BuildContext context) {
return MaterialApp.router(
routeInformationParser: Modular.routeInformationParser,
routerDelegate: Modular.routerDelegate
..setObservers([LuciqNavigatorObserver()]),
// ...
);
}