fast_nav 0.1.0 fast_nav: ^0.1.0 copied to clipboard
Navigate without context. Call navigation methods from your business logic.
Navigate without context
Features #
fast_nav supports the following navigation methods:
- pop
- canPop
- push
- pushReplacement
- pushAndRemoveUntil
- pushAndRemoveAll
- pushNamed
- pushReplacementNamed
- pushNamedAndRemoveUntil
- pushNamedAndRemoveAll
fast_nav supports nested navigation and provides a NestedNavigator class for simple setup
Getting started #
MaterialApp(
navigatorKey: FastNav.init(GlobalKey<NavigatorState>()),
);
Usage #
import 'package:fast_nav/fast_nav.dart';
FastNav.push(const NewPage());
import 'package:fast_nav/fast_nav.dart';
...
NestedNavigator(
navigatorKey: GlobalKey<NavigatorState>(),
name: 'nested',
home: const Text('home'),
);
...
FastNav.push(const NewPage(), navigatorName: 'nested');
Additional information #
See fast_ui for more information