所以我看到了ReorderableListView demo,看到他们有
"辅助:常量图标(Icons.Drag_Handle)"
但是查看reorderable_list.dart文件,我注意到整个列表无论如何都可以在LongPressDraggable上拖动[第424行].那么,我如何才能explicitly对源代码或我自己的代码进行更改,以便正确地使图标成为实际的拖动柄呢?
CheckboxListTile(
key: Key(item.value),
isThreeLine: true,
value: item.checkState ?? false,
onChanged: (bool newValue) {
setState(() {
item.checkState = newValue;
});
},
title: Text('This item represents ${item.value}.'),
subtitle: secondary,
secondary: const Icon(Icons.drag_handle), // Make this Icon drag source
);
谢谢