0

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.

1 Answers1

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.