digita_router 0.3.0
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 version0.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 deprecatedreplaceWith()
replaceRouteWith()
— replaces deprecatedreplaceNamed()
-
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
andgoBackUntil
navigation behaviors.closeAllPages()
functionality returning to root.
-
Created dummy
HomePage
,DetailsPage
, andAnotherPage
widgets to support navigation tests. -
Configured
MaterialApp
with injecteddigita.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