fix(ci): use compatible reorder callback
This commit is contained in:
@@ -43,7 +43,8 @@ class PantallaFavoritos extends StatelessWidget {
|
|||||||
|
|
||||||
return ReorderableListView.builder(
|
return ReorderableListView.builder(
|
||||||
padding: const EdgeInsets.all(12),
|
padding: const EdgeInsets.all(12),
|
||||||
onReorderItem: (oldIndex, newIndex) async {
|
onReorder: (oldIndex, newIndex) async {
|
||||||
|
if (newIndex > oldIndex) newIndex--;
|
||||||
final emisora = favoritos[oldIndex];
|
final emisora = favoritos[oldIndex];
|
||||||
await estado.favoritos.reordenar(emisora.uuid, newIndex);
|
await estado.favoritos.reordenar(emisora.uuid, newIndex);
|
||||||
await estado.cargarFavoritos();
|
await estado.cargarFavoritos();
|
||||||
|
|||||||
Reference in New Issue
Block a user