fast_nav

Last updated:

0 purchases

fast_nav Image
fast_nav Images
Add to Cart

Description:

fast nav

Navigate without context






Features #
fast_nav supports the following navigation methods:

pop
canPop
push
pushReplacement
pushAndRemoveUntil
pushAndRemoveAll
pushNamed
pushReplacementNamed
pushNamedAndRemoveUntil
pushNamedAndRemoveAll

Convenience features:

Nested navigation with a NestedNavigator class for simple setup

Getting started #
Register a GlobalKey with FastNav and your MaterialApp

import 'package:fast_nav/fast_nav.dart';
import 'package:flutter/material.dart';

void example() {
MaterialApp(
navigatorKey: FastNav.init(),
);
}

copied to clipboard
Usage #

import 'package:fast_nav/fast_nav.dart';
import 'package:flutter/material.dart';

void example(BuildContext context) {
context.push(const Text('Navigate with context'));
FastNav.push(const Text('or without'));
}

copied to clipboard

import 'package:fast_nav/fast_nav.dart';
import 'package:flutter/material.dart';

void example() {
// ...

NestedNavigator(
name: 'nestedNavigator',
home: const Text('home'),
);

// ...

FastNav.push(const Text('New page'), navigator: 'nestedNavigator');
}

copied to clipboard
Additional information #
See fast_ui for more information

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.