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

discontinued
outdated

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
  • Easy integration
  • Lots of possibilities

Using #

Go to the next route

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

Go to the previous route

context.dipNav.pop();

Getting Started #

1) Add dependency
dependencies:
  ...
  flutter_dipnav: ^1.0.0-dev.3
2) Create instance of [DipNavRouter], like this
final dipNav = DipNavRouter(
  initRoute: DipNavRoute(
      page: '/',
      child: MyHomePage(
        title: 'Home Page 1',
      )),
  notFoundRoute: DipNavRoute(
      path: '/404',
      page: MyHomePage(
        title: 'Error 404 - Not found page',
      )),
);
3) Add the [DipNav] widget to the source, like this
class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    ...
    return DipNav(
      router: dipNav,
      child: MaterialApp.router(
        ...
      ),
    );
  }
}
4) Add the [routerDelegate], [routeInformationParser] and [backButtonDispatcher] to the [MaterialApp.router]
child: MaterialApp.router(
    title: 'Flutter Demo',
    ...
    routerDelegate: dipNav.delegate,
    routeInformationParser: dipNav.parser,
    backButtonDispatcher: dipNav.dispatcher,
),
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
0
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

License

unknown (LICENSE)

Dependencies

flutter, pedantic

More

Packages that depend on flutter_dipnav