router_builder 2.0.1
router_builder: ^2.0.1 copied to clipboard
Declarative Flutter navigation and deep link generator with typed routes.
CHANGELOG #
2.0.1 #
- Enhanced docs.
2.0.0 #
- Updated all packages to the latest version and migrated to the latest analyzer and build runner.
1.1.1 #
- Documented all public APIs.
1.1.0 #
- Updated exports.
1.0.0 #
π Major Enhancement: Unified Deep Link System #
Added
- DeepLinkHandler: New generic abstract class for type-safe deep link handling
- Enhanced RouteInfo: Added
deepLinkHandlerparameter to all RouteInfo constructors - Comprehensive Deep Link Map: Generated map now includes:
- Route names as keys
- First path segments as keys
- Deep link aliases from
deepLinkNames - Build-time conflict detection with detailed error messages
- Migration Guide: Comprehensive guide for migrating from separate deep link registries
- Updated Documentation: Enhanced AI docs with deep link examples and patterns
Changed
- Code Generator: Enhanced to extract path parameters and create comprehensive key mappings
- Deep Link Resolution: Routes are now the single source of truth for deep links
- Generated Helper:
deepLinkMapis now suitable for complete URI resolution
Benefits
- β Single source of truth for routes and deep links
- β No more RegExp patterns or manual handler registration
- β Build-time validation of deep link conflicts
- β Co-located deep link logic with route definitions
- β Reduced boilerplate code
- β Type-safe deep link handling
0.0.1βInitial Release #
- INITIAL: Initial release with basic route generation