remplace onReorder by onReorderItem

This commit is contained in:
PacoX
2026-07-09 08:43:55 +02:00
parent 3541b1bbac
commit 2df17be673
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -281,7 +281,7 @@ class _ChannelsScreenState extends State<ChannelsScreen>
), ),
buildDefaultDragHandles: false, buildDefaultDragHandles: false,
itemCount: filteredChannels.length, itemCount: filteredChannels.length,
onReorder: (oldIndex, newIndex) { onReorderItem: (oldIndex, newIndex) {
final reordered = List<Channel>.from( final reordered = List<Channel>.from(
filteredChannels, filteredChannels,
); );
+1 -1
View File
@@ -323,7 +323,7 @@ class _PathEditorSheetState extends State<PathEditorSheet> {
physics: const NeverScrollableScrollPhysics(), physics: const NeverScrollableScrollPhysics(),
buildDefaultDragHandles: false, buildDefaultDragHandles: false,
itemCount: _hops.length, itemCount: _hops.length,
onReorder: _reorderHop, onReorderItem: _reorderHop,
itemBuilder: _hopTile, itemBuilder: _hopTile,
), ),
const Divider(), const Divider(),