navigation_listener 0.0.4
navigation_listener: ^0.0.4 copied to clipboard
A small wrapper that decouples the navigation from the UI using Flutter's Notifications.
A wrapper that decouples navigation from the UI using Flutter's Notification system.
Features #
Decouples any navigating library, allowing to use any Router you want.
Getting started #
To use this plugin, add navigation_listener as a dependency in your pubspec.yaml file.
dependencies: navigation_listener: ^lastVersion
Usage #
Configure your main app to use MaterialApp.router and use the builder function to wrap the child application with a NavigationListener.
MaterialApp.router(
builder: (context, child) => NavigationListener(child: child!,),
);
Additional information #
Feel free to open a PR with any feature you think it could be added.