double_tap_back_exit 1.1.1
double_tap_back_exit: ^1.1.1 copied to clipboard
A Flutter widget to handle double-tap exit functionality with customizable duration and toast/snackbar messages.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add double_tap_back_exitThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
double_tap_back_exit: ^1.1.1Alternatively, 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:double_tap_back_exit/double_tap_back_exit.dart';