hold_down_button library
A Flutter package to trigger an action repeatedly when a widget is hold/pressed down.
Usage
HoldDownButton(
onHoldDown: () => print('Pressed'),
child: ElevatedButton(
onPressed: () => print('Pressed'),
child: const Text('ElevatedButton'),
),
),
Classes
- HoldDownButton
- The HoldDownButton is a StatefulWidget that can be held down to repeatedly trigger an action.