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.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add go_router_back_handler

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  go_router_back_handler: ^1.0.2

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:go_router_back_handler/go_router_back_handler.dart';
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