luciq_flutter_modular 2.0.0 copy "luciq_flutter_modular: ^2.0.0" to clipboard
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 #

Pub Twitter

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

Installation #

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

Usage #

  1. Wrap your AppParentModule inside LuciqModule:

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

    // ...
  );
}
0
likes
150
points
39
downloads

Publisher

unverified uploader

Weekly Downloads

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

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_modular, luciq_flutter, meta

More

Packages that depend on luciq_flutter_modular