chore: Follow up reorder handle for todos

This commit is contained in:
krille-chan 2023-10-29 08:53:00 +01:00
parent b8a998c029
commit 946b6530b9
No known key found for this signature in database

View file

@ -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),
),
],
),
);