route_aware_widget 0.0.2
route_aware_widget: ^0.0.2 copied to clipboard
A Flutter package that makes widgets aware of route navigation changes. Get callbacks when your widget's page appears or disappears.
Changelog #
All notable changes to this project will be documented in this file.
0.0.1 - 2025-11-01 #
Added #
- Initial release of RouteAwareWidget
- Core
RouteAwareWidgetwithonPageAppearandonPageDisappearcallbacks RouteObserverProviderfor easy RouteObserver integration- Support for standard Navigator (MaterialPageRoute, CupertinoPageRoute)
- Compatible with AutoRoute
- Compatible with GoRouter
- Compatible with Navigator 2.0
RouteAwareWidgetObserverabstract class for custom navigation systems- Comprehensive documentation and examples
- Multiple real-world usage examples:
- Standard Navigator example
- Video player auto-pause example
- Analytics tracking example
- AutoRoute integration guide
- GoRouter integration guide
Features #
- Lightweight implementation using Flutter's built-in RouteAware mixin
- Automatic cleanup on widget disposal
- No external dependencies (pure Flutter)
- Works with any ModalRoute-based navigation