go_router_back_handler 1.0.2 copy "go_router_back_handler: ^1.0.2" to clipboard
go_router_back_handler: ^1.0.2 copied to clipboard

PlatformAndroid

A robust back button handler for GoRouter that works on all routes including root routes. Solves the PopScope limitation with native Android integration.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.0.2 - 2024-04-12 #

Fixed #

  • Replaced deprecated withOpacity() with withValues(alpha:) for Flutter 3.27+
  • Fixes pub.dev analysis warnings
  • Improves pub points score to 160/160

1.0.1 - 2024-04-12 #

Changed #

  • Compatibility Update: Expanded go_router dependency range from ^13.0.0 to >=13.0.0 <18.0.0
  • Now supports go_router versions 13.x through 17.x
  • No breaking changes - fully backward compatible with 1.0.0

1.0.0 - 2024-04-12 #

Added #

  • Initial release of go_router_back_handler
  • Native Android MethodChannel integration for back button handling
  • Smart route detection and parent finding
  • Customizable exit confirmation dialog with modern design
  • Sequential flow support for registration/wizard flows
  • Dynamic route handling for parameterized routes
  • Configurable double-tap to exit pattern
  • Debug mode with detailed logging
  • Custom toast and dialog support
  • Comprehensive documentation and examples
  • Full test coverage

Features #

  • Works on ALL routes including root routes (solves PopScope limitation)
  • Zero configuration with sensible defaults
  • Highly customizable via BackHandlerConfig
  • Production-ready and battle-tested
  • Type-safe API with full Dart type safety

Documentation #

  • Comprehensive README with quick start guide
  • API documentation with examples
  • Troubleshooting guide
  • Contributing guidelines
  • MIT License

[Unreleased] #

Planned #

  • iOS support (future release)
  • Web support (future release)
  • Additional customization options
  • Performance optimizations
  • More example apps
1
likes
160
points
127
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

A robust back button handler for GoRouter that works on all routes including root routes. Solves the PopScope limitation with native Android integration.

Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

flutter, go_router

More

Packages that depend on go_router_back_handler

Packages that implement go_router_back_handler