digita_router 0.3.0 copy "digita_router: ^0.3.0" to clipboard
digita_router: ^0.3.0 copied to clipboard

A lightweight, context-free Flutter navigation package. Navigate without BuildContext—ideal for MVVM, BLoC, Riverpod, or plain Flutter.

0.3.0 #

Breaking Changes #

  • Refactored API Method Names and Parameters
    Improved method naming and parameter consistency for better clarity and usability.

  • Supported Navigation API
    Only the following navigation methods are now supported:

    • goTo()
    • goBack()
    • goToRoute()
    • goBackTo()
    • closeAllPages()
    • replacePageWith()
    • replaceRouteWith()
  • Deprecation Notice
    All other navigation methods are now deprecated and will be removed in version 0.5.0.

Other Changes #

  • Updated documentation to reflect API changes.
  • Updated test cases and coverage based on the refined API.

0.2.0 #

Added #

  • New, more readable and developer-friendly navigation methods:

    • openPage()
    • closePage()
    • closeAllPages()
    • openRoute()
    • closeRoute()
    • replacePageWith() — replaces deprecated replaceWith()
    • replaceRouteWith() — replaces deprecated replaceNamed()
  • Updated example code with detailed comments for improved clarity.

  • Improved documentation and added a comprehensive example demonstrating both widget-based and named route navigation.

  • Added widget tests for digita_router navigation functionalities:

    • Navigation without context by pushing widget-based pages.
    • Named route navigation.
    • Page replacement with widget and named routes.
    • goBack and goBackUntil navigation behaviors.
    • closeAllPages() functionality returning to root.
  • Created dummy HomePage, DetailsPage, and AnotherPage widgets to support navigation tests.

  • Configured MaterialApp with injected digita.navigatorKey for context-free navigation testing.

0.1.0 #

  • Initial stable release of digita_router
  • Provides context-free navigation using a global navigatorKey
  • Works with Flutter’s built-in MaterialApp routes
  • Includes core methods:
    • goTo()
    • goToNamed()
    • goBack()
    • goBackUntil()
    • replaceWith()
    • replaceNamed()
  • Comes with widget tests for core navigation flows
  • Includes a complete example/ app demonstrating usage
  • Added const constructors in example code for performance
  • Cleaned up metadata, README, and pubspec for pub.dev compliance

0.0.2 #

  • Minor fixes and improvements
  • Updated documentation and metadata

0.0.1 #

Initial release of digita_router

  • Provides context-free navigation for Flutter apps using a global navigatorKey
  • Easy-to-use methods:
    • goTo(), goToNamed()
    • goBack(), goBackUntil()
    • replaceWith(), replaceNamed()
  • Fully compatible with any architecture (e.g., MVVM, BLoC, Riverpod, plain Flutter)
  • Includes widget tests covering core navigation use cases
  • Comes with an example app demonstrating real usage
1
likes
160
points
37
downloads

Documentation

API reference

Publisher

verified publisherdigitabank.com

Weekly Downloads

A lightweight, context-free Flutter navigation package. Navigate without BuildContext—ideal for MVVM, BLoC, Riverpod, or plain Flutter.

Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

flutter

More

Packages that depend on digita_router