gesture_debouncer 0.0.3 gesture_debouncer: ^0.0.3 copied to clipboard
Created simple widget that can act as debouncer to absorb certain gestures according to the cooldowns/futures.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add gesture_debouncer
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
gesture_debouncer: ^0.0.3
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:gesture_debouncer/gesture_debouncer.dart';