fix Flutter SDK update

PR #458 included
This commit is contained in:
HDDen committed 2026-05-23 18:28:16 +03:00
1 parent a50c0d0b2d
commit 6d258154a0
2 files changed
+26 -3

No files matched your search

+3 -2
View File
@@ -273,8 +273,9 @@ class _ChannelsScreenState extends State<ChannelsScreen>
),
buildDefaultDragHandles: false,
itemCount: filteredChannels.length,
onReorder: (oldIndex, newIndex) {
if (newIndex > oldIndex) newIndex -= 1;
onReorderItem: (oldIndex, newIndex) {
// onReorderItem already adjusts newIndex after the
// removed item, unlike the deprecated onReorder.
final reordered = List<Channel>.from(
filteredChannels,
);