On an android, how can I cause a vibrate on the long press of a reorderable list item? I have tried using gesture detector on the item and it disables the ability to reorder the list.
Asked
Active
Viewed 700 times
1 Answers
1
You can wrap your proxyDecorator
's child in a stateful widget that calls HapticFeedback.lightImpact();
in its initState()
to vibrate when the user picks up the widget. To vibrate on release, call HapticFeedback.lightImpact();
in the ReorderableListView
's onReorder
callback.

TinyTortoise
- 11
- 1