Squashed commit of the following:
commit 83ffe44025206945ca75437c83f7da85e493609a Author: HDDen <62592944+HDDen@users.noreply.github.com> Date: Tue May 19 19:16:48 2026 +0300 fix Flutter SDK update
This commit is contained in:
1 parent
a50c0d0b2d
commit
c4b3971bdd
1 file changed
+3
-2
@@ -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,
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user