modular_navigation 0.0.11 copy "modular_navigation: ^0.0.11" to clipboard
modular_navigation: ^0.0.11 copied to clipboard

outdated

Modular Navigation

modular_navigation #

Modular navigation sets out to replicate as closely as possible the excellent navigation system in Angular in a simple declaritive style using the highly complex flutter navigation 2.0.

Modular Navigation is fully compatible with GetIt injection and works well with authentication mechanisms.

Modular Navigation fully supports route guards and also supports module-wide guards.

Modular Navigation is designed for future functionality for code splitting on flutter web when ready.

Getting Started #

  1. Create a root module defining all of the defaults and any sub modules you need.
  2. Implement MaterialApp.router and pass the parameters similar to how the example does it.
  3. Every page in your app should inherit from ModularPage and define the parameters that it will accept.
  4. Use context.navigateTo() extension method to navigate around your app with the strongly typed version of the pages.