diff --git a/lib/presentation/views/main_menu/match_view/create_match/create_teams/manage_members_view.dart b/lib/presentation/views/main_menu/match_view/create_match/create_teams/manage_members_view.dart index f24da72..7d2f2d7 100644 --- a/lib/presentation/views/main_menu/match_view/create_match/create_teams/manage_members_view.dart +++ b/lib/presentation/views/main_menu/match_view/create_match/create_teams/manage_members_view.dart @@ -60,7 +60,7 @@ class _ManageMembersViewState extends State { padding: const EdgeInsets.fromLTRB(0, 12, 0, 96), buildDefaultDragHandles: false, itemCount: allItemsCount, - onReorder: onReorder, + onReorderItem: onReorderItem, proxyDecorator: (child, index, animation) => Material(type: MaterialType.transparency, child: child), itemBuilder: (context, index) { @@ -188,7 +188,7 @@ class _ManageMembersViewState extends State { } /// Handles moving a member from one team to another - void onReorder(int oldIndex, int newIndex) { + void onReorderItem(int oldIndex, int newIndex) { final sourceTeamIndex = teamIndexForFlat(oldIndex); final sourceMemberIndex = memberIndexForFlat(oldIndex, sourceTeamIndex); 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 d0a9ad6..0c16191 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 @@ -715,7 +715,7 @@ class _MatchResultViewState extends State { }, ); }, - onReorder: (int oldIndex, int newIndex) { + onReorderItem: (int oldIndex, int newIndex) { setState(() { if (newIndex > oldIndex) { newIndex -= 1; @@ -767,7 +767,7 @@ class _MatchResultViewState extends State { }, ); }, - onReorder: (int oldIndex, int newIndex) { + onReorderItem: (int oldIndex, int newIndex) { setState(() { if (newIndex > oldIndex) { newIndex -= 1;