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