fix onReorder deprication

This commit is contained in:
ericz committed 2026-06-13 13:22:15 +02:00
1 parent 577e1772d3
commit 5c612b9a46
3 files changed
+3 -9

No files matched your search

+1 -4
View File
@@ -281,10 +281,7 @@ class _ChannelsScreenState extends State<ChannelsScreen>
),
buildDefaultDragHandles: false,
itemCount: filteredChannels.length,
onReorder: (oldIndex, newIndex) {
if (oldIndex < newIndex) {
newIndex -= 1;
}
onReorderItem: (oldIndex, newIndex) {
final reordered = List<Channel>.from(
filteredChannels,
);