mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 09:35:12 +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(
|
: ReorderableListView.builder(
|
||||||
onReorder: controller.onReorder,
|
onReorder: controller.onReorder,
|
||||||
itemCount: list.length,
|
itemCount: list.length,
|
||||||
|
buildDefaultDragHandles: false,
|
||||||
itemBuilder: (context, i) {
|
itemBuilder: (context, i) {
|
||||||
final todo = list[i];
|
final todo = list[i];
|
||||||
final description = todo.description;
|
final description = todo.description;
|
||||||
|
@ -158,7 +159,11 @@ class TasksView extends StatelessWidget {
|
||||||
),
|
),
|
||||||
onPressed: () => controller.deleteTodo(i),
|
onPressed: () => controller.deleteTodo(i),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 8),
|
ReorderableDragStartListener(
|
||||||
|
index: i,
|
||||||
|
child:
|
||||||
|
const Icon(Icons.drag_handle_outlined),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue