go_navigator 2.0.3 go_navigator: ^2.0.3 copied to clipboard
Go navogator handles navigation by reducing class argument and exposing the top most route args to the context and navigation key where passed
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add go_navigator
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
go_navigator: ^2.0.3
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:go_navigator/go.dart';
import 'package:go_navigator/go/go.dart';
import 'package:go_navigator/go/service/extensions/on_context.dart';
import 'package:go_navigator/go/service/extensions/on_navigation_key.dart';
import 'package:go_navigator/go/service/go_navigator.dart';
import 'package:go_navigator/go/service/go_observer.dart';