Skip to content

Commit

Permalink
Add haptic feedback fro long press
Browse files Browse the repository at this point in the history
  • Loading branch information
proninyaroslav committed Sep 27, 2024
1 parent a82860e commit a2035dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
<uses-permission android:name="android.permission.VIBRATE" />

<!-- Removed permissions requested by third party plugins -->
<uses-permission android:name="android.permission.RECORD_AUDIO" tools:node="remove" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ class DragSelectStaggeredGridState extends State<DragSelectStaggeredGrid>
}

void _handleLongPressStart(LongPressStartDetails details) {
Feedback.forLongPress(context);
final pressIndex = _findIndexOfSelectable(details.localPosition);

if (pressIndex != -1) {
Expand Down

0 comments on commit a2035dd

Please sign in to comment.