diff --git a/lib/presentation/views/main_menu/match_view/match_result_view.dart b/lib/presentation/views/main_menu/match_view/match_result_view.dart index 47f91c5..fa51f0a 100644 --- a/lib/presentation/views/main_menu/match_view/match_result_view.dart +++ b/lib/presentation/views/main_menu/match_view/match_result_view.dart @@ -348,16 +348,17 @@ class _MatchResultViewState extends State { onReorderEnd: (int n) async { await HapticFeedback.selectionClick(); }, - onReorder: (int oldIndex, int newIndex) { - setState(() { - if (newIndex > oldIndex) { - newIndex -= 1; - } - final Player item = allPlayers - .removeAt(oldIndex); - allPlayers.insert(newIndex, item); - }); - }, + onReorderItem: + (int oldIndex, int newIndex) { + setState(() { + if (newIndex > oldIndex) { + newIndex -= 1; + } + final Player item = allPlayers + .removeAt(oldIndex); + allPlayers.insert(newIndex, item); + }); + }, itemCount: allPlayers.length, itemBuilder: (context, index) { return TextIconListTile(