flutter_smart_exit 1.1.0 copy "flutter_smart_exit: ^1.1.0" to clipboard
flutter_smart_exit: ^1.1.0 copied to clipboard

A customizable Flutter widget that smartly handles Android back presses, preventing accidental exits with options like double-back to exit, dialogs, bottom sheets, or snack bars.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add flutter_smart_exit

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

dependencies:
  flutter_smart_exit: ^1.1.0

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:flutter_smart_exit/flutter_smart_exit.dart';
3
likes
160
points
19
downloads

Publisher

verified publisherraihansikdar.com

Weekly Downloads

A customizable Flutter widget that smartly handles Android back presses, preventing accidental exits with options like double-back to exit, dialogs, bottom sheets, or snack bars.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_smart_exit