flutter_dipnav 1.0.0-dev.10 copy "flutter_dipnav: ^1.0.0-dev.10" to clipboard
flutter_dipnav: ^1.0.0-dev.10 copied to clipboard

Advanced navigation based on Navigator 2.0. Simple and reliable navigation with additional bonuses.

flutter_dipnav #

Advanced navigation based on Navigator 2.0

  • Simple use You only need two methods - push and pop
  • Easy integration Just two steps of implementation
  • Lots of possibilities Protect routes, for example, to be accessed only by authorized

Example of work

Using #

Go to the next route #

context.dipNav.push(
    path: '/',
    page: MyHomePage(title: 'Home Page'),
);

Go to the previous route #

context.dipNav.pop();

Get queries from the route #

context.dipNavData?.queries

Get arguments from the route #

context.dipNavData?.arguments

Getting Started #

1) Add dependency #

dependencies:
  ...
  flutter_dipnav: ^1.0.0-dev.10

2) Add the [DipNav] widget to the source, like this #

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return DipNav.builder(
      initRoute: DipNavRoute(
          path: '/',
          page: MyHomePage(
            title: 'Home Page 1',
          )),
      builder: (delegate, parser, dispatcher) => MaterialApp.router(
        title: 'Flutter Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        routerDelegate: delegate,
        routeInformationParser: parser,
        backButtonDispatcher: dispatcher,
      ),
      notFoundRoute: DipNavRoute(
          path: '/404',
          page: MyHomePage(
            title: 'Error 404 - Not found page',
          )),
    );
  }
}
Please check the example

Features and bugs #

Please file feature requests and bugs at the issue tracker.

Authors #

This project developed by DipDev Studio Team: @Dimoshka

5
likes
120
pub points
0%
popularity

Publisher

verified publisherdipdev.studio

Advanced navigation based on Navigator 2.0. Simple and reliable navigation with additional bonuses.

Homepage
Repository (GitLab)
View/report issues

Documentation

API reference

License

AGPL-3.0 (LICENSE)

Dependencies

flutter, pedantic

More

Packages that depend on flutter_dipnav