mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
fix: details card page
This commit is contained in:
@@ -40,13 +40,16 @@ class _ServerDetailOrderPageState extends State<ServerDetailOrderPage> {
|
|||||||
buildDefaultDragHandles: false,
|
buildDefaultDragHandles: false,
|
||||||
itemBuilder: (_, idx) {
|
itemBuilder: (_, idx) {
|
||||||
final key = allKeys[idx];
|
final key = allKeys[idx];
|
||||||
return CardX(
|
return ReorderableDelayedDragStartListener(
|
||||||
key: ValueKey(idx),
|
key: ValueKey(idx),
|
||||||
child: ListTile(
|
index: idx,
|
||||||
contentPadding: const EdgeInsets.only(left: 23, right: 11),
|
child: CardX(
|
||||||
leading: Icon(ServerDetailCards.fromName(key)?.icon),
|
child: ListTile(
|
||||||
title: Text(key),
|
contentPadding: const EdgeInsets.only(left: 23, right: 11),
|
||||||
trailing: _buildCheckBox(keys, key, idx, idx < keys.length),
|
leading: Icon(ServerDetailCards.fromName(key)?.icon),
|
||||||
|
title: Text(key),
|
||||||
|
trailing: _buildCheckBox(keys, key, idx, idx < keys.length),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user