tap_debouncer 0.0.4
tap_debouncer: ^0.0.4 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: ^0.0.4
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';