From 4bcd86f59c3027c0e58f8ab5cfbb4bceb080301d Mon Sep 17 00:00:00 2001 From: freetlab Date: Wed, 20 May 2026 20:18:43 +0200 Subject: [PATCH] fix(ci): use compatible reorder callback --- lib/pantallas/pantalla_favoritos.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pantallas/pantalla_favoritos.dart b/lib/pantallas/pantalla_favoritos.dart index 414ee34..837084f 100644 --- a/lib/pantallas/pantalla_favoritos.dart +++ b/lib/pantallas/pantalla_favoritos.dart @@ -43,7 +43,8 @@ class PantallaFavoritos extends StatelessWidget { return ReorderableListView.builder( padding: const EdgeInsets.all(12), - onReorderItem: (oldIndex, newIndex) async { + onReorder: (oldIndex, newIndex) async { + if (newIndex > oldIndex) newIndex--; final emisora = favoritos[oldIndex]; await estado.favoritos.reordenar(emisora.uuid, newIndex); await estado.cargarFavoritos();