diff --git a/lib/presentation/views/main_menu/group_view/group_detail_view.dart b/lib/presentation/views/main_menu/group_view/group_detail_view.dart index 9253820..966add0 100644 --- a/lib/presentation/views/main_menu/group_view/group_detail_view.dart +++ b/lib/presentation/views/main_menu/group_view/group_detail_view.dart @@ -10,17 +10,17 @@ import 'package:game_tracker/presentation/widgets/player_selection.dart'; import 'package:game_tracker/presentation/widgets/text_input/text_input_field.dart'; import 'package:provider/provider.dart'; -class CreateGroupView extends StatefulWidget { - const CreateGroupView({super.key, this.groupToEdit}); +class GroupDetailView extends StatefulWidget { + const GroupDetailView({super.key, this.groupToEdit}); /// The group to edit, if any final Group? groupToEdit; @override - State createState() => _CreateGroupViewState(); + State createState() => _GroupDetailViewState(); } -class _CreateGroupViewState extends State { +class _GroupDetailViewState extends State { late final AppDatabase db; /// GlobalKey for ScaffoldMessenger to show snackbars @@ -145,7 +145,7 @@ class _CreateGroupViewState extends State { ); */ success = false; - }; + } if (!context.mounted) return; if (success) { Navigator.pop(context); diff --git a/lib/presentation/views/main_menu/group_view/groups_view.dart b/lib/presentation/views/main_menu/group_view/groups_view.dart index 974b5b8..e85fcda 100644 --- a/lib/presentation/views/main_menu/group_view/groups_view.dart +++ b/lib/presentation/views/main_menu/group_view/groups_view.dart @@ -78,7 +78,7 @@ class _GroupsViewState extends State { context, adaptivePageRoute( builder: (context) { - return CreateGroupView(groupToEdit: groups[index]); + return GroupDetailView(groupToEdit: groups[index]); }, ), ); @@ -100,7 +100,7 @@ class _GroupsViewState extends State { context, adaptivePageRoute( builder: (context) { - return const CreateGroupView(); + return const GroupDetailView(); }, ), );