mirror of
https://github.com/krille-chan/fluffychat
synced 2024-08-11 07:53:48 +00:00
chore: Follow up reorder handle for todos
This commit is contained in:
parent
b8a998c029
commit
946b6530b9
1 changed files with 6 additions and 1 deletions
|
@ -74,6 +74,7 @@ class TasksView extends StatelessWidget {
|
|||
: ReorderableListView.builder(
|
||||
onReorder: controller.onReorder,
|
||||
itemCount: list.length,
|
||||
buildDefaultDragHandles: false,
|
||||
itemBuilder: (context, i) {
|
||||
final todo = list[i];
|
||||
final description = todo.description;
|
||||
|
@ -158,7 +159,11 @@ class TasksView extends StatelessWidget {
|
|||
),
|
||||
onPressed: () => controller.deleteTodo(i),
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
ReorderableDragStartListener(
|
||||
index: i,
|
||||
child:
|
||||
const Icon(Icons.drag_handle_outlined),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue