implement changes
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m27s
Pull Request Pipeline / lint (pull_request) Successful in 2m33s

This commit is contained in:
2026-01-03 15:38:25 +01:00
parent 9fc308554c
commit ec94e12ed7
22 changed files with 247 additions and 282 deletions

View File

@@ -44,12 +44,14 @@ class _MatchViewState extends State<MatchView> {
@override
void initState() {
super.initState();
db = Provider.of<AppDatabase>(context, listen: false);
loadGames();
}
@override
Widget build(BuildContext context) {
final loc = AppLocalizations.of(context);
return Scaffold(
backgroundColor: CustomTheme.backgroundColor,
body: Stack(
@@ -62,8 +64,8 @@ class _MatchViewState extends State<MatchView> {
replacement: Center(
child: TopCenteredMessage(
icon: Icons.report,
title: AppLocalizations.of(context).info,
message: AppLocalizations.of(context).no_matches_created_yet,
title: loc.info,
message: loc.no_matches_created_yet,
),
),
child: ListView.builder(
@@ -97,7 +99,7 @@ class _MatchViewState extends State<MatchView> {
Positioned(
bottom: MediaQuery.paddingOf(context).bottom,
child: CustomWidthButton(
text: AppLocalizations.of(context).create_match,
text: loc.create_match,
sizeRelativeToWidth: 0.90,
onPressed: () async {
Navigator.push(