tap_debouncer 2.2.0 tap_debouncer: ^2.2.0 copied to clipboard
Tap debounce simplifying widget. Wrap your button widget in TapDebounce widget and any taps will be disabled while tap callback is in progress.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add tap_debouncer
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
tap_debouncer: ^2.2.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:tap_debouncer/tap_debouncer.dart';