Skip to content

Commit c4ee879

Browse files
committed
feat: Added drag handle icon and vibration to reorderable list in SetBookListsOrderScreen
1 parent c42bdde commit c4ee879

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/ui/settings_screen/set_book_lists_order_screen.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import 'package:easy_localization/easy_localization.dart';
22
import 'package:flutter/material.dart';
3+
import 'package:flutter/services.dart';
34
import 'package:flutter_bloc/flutter_bloc.dart';
45
import 'package:openreads/core/constants/enums/book_status.dart';
56
import 'package:openreads/generated/locale_keys.g.dart';
@@ -65,12 +66,16 @@ class SetBookListsOrderScreen extends StatelessWidget {
6566
title: Text(
6667
_getBookStatusTranslation(bookListsOrder[index]),
6768
),
69+
trailing: const Icon(Icons.drag_handle),
6870
),
6971
),
7072
],
7173
onReorder: (int oldIndex, int newIndex) => context
7274
.read<BookListsOrderCubit>()
7375
.updateOrder(oldIndex, newIndex),
76+
onReorderStart: (_) {
77+
HapticFeedback.heavyImpact();
78+
},
7479
);
7580
}),
7681
),

0 commit comments

Comments
 (0)