Last updated:
0 purchases
flutter approuter
Flutter Approuter #
Navigation made easy, now navigate to screens, without BuildContext from pure flutter & dart code.
Installation #
Add the latest version of package to your pubspec.yaml (and rundart pub get):
dependencies:
flutter_approuter:
copied to clipboard
Import the package and use it in your Flutter App.
import 'package:flutter_approuter/flutter_approuter.dart';
copied to clipboard
Add NavigatorKey in Material App for routing without BuiltContext
MaterialApp(
navigatorKey: navigatorKey,
...
)
copied to clipboard
Supported Devices #
Android
IOS
Linux
Windows
Macos
Features #
✅
Custom appRouter without BuiltContext
✅ push
✅ pushOffAll
✅ pushNamed
✅ pop
✅
Get Context on initMethod also outside of page
✅ getContext
Example #
AppRouter without BuildContext #
getContext()
appRouter.getContext();
copied to clipboard
Push(Page)
appRouter.push(HomeScreen());
copied to clipboard
Pop()
appRouter.pop();
copied to clipboard
pushNamed(String route)
appRouter.pushNamed(route);
copied to clipboard
pushOffAll(Widget page)
appRouter.pushOffAll(page);
copied to clipboard
Contributions #
If you find a bug or want a feature, but don't know how to fix/implement it, please fill an issue.
If you fixed a bug or implemented a feature, please send a pull request.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.