rename CreateGroupView to GroupDetailView for clarity and consistency
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m3s
Pull Request Pipeline / lint (pull_request) Successful in 2m4s

This commit is contained in:
2026-01-10 22:11:28 +01:00
parent 525acec1d3
commit b6dd0541ae
2 changed files with 7 additions and 7 deletions

View File

@@ -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<CreateGroupView> createState() => _CreateGroupViewState();
State<GroupDetailView> createState() => _GroupDetailViewState();
}
class _CreateGroupViewState extends State<CreateGroupView> {
class _GroupDetailViewState extends State<GroupDetailView> {
late final AppDatabase db;
/// GlobalKey for ScaffoldMessenger to show snackbars
@@ -145,7 +145,7 @@ class _CreateGroupViewState extends State<CreateGroupView> {
);
*/
success = false;
};
}
if (!context.mounted) return;
if (success) {
Navigator.pop(context);

View File

@@ -78,7 +78,7 @@ class _GroupsViewState extends State<GroupsView> {
context,
adaptivePageRoute(
builder: (context) {
return CreateGroupView(groupToEdit: groups[index]);
return GroupDetailView(groupToEdit: groups[index]);
},
),
);
@@ -100,7 +100,7 @@ class _GroupsViewState extends State<GroupsView> {
context,
adaptivePageRoute(
builder: (context) {
return const CreateGroupView();
return const GroupDetailView();
},
),
);