a_router: ^0.0.2 copied to clipboard
a router including a register method, natgation method.
Use this package as a library
Depend on it
Run this command:
$ flutter pub pub add a_router
This will add a line like this to your package's pubspec.yaml (and run an implicit
dart pub get):
dependencies: a_router: ^0.0.2
Alternatively, your editor might support
flutter pub get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:a_router/router.dart'; import 'package:a_router/route/async_material_page_route.dart'; import 'package:a_router/route/route_register.dart'; import 'package:a_router/route/setting.dart'; import 'package:a_router/services/navigation_service.dart'; import 'package:a_router/ui/views/direct_interface/error/no_path_error.dart'; import 'package:a_router/ui/views/direct_interface/error/unknown_error.dart';