diff --git a/wrestling_scoreboard_client/lib/l10n/app_de.arb b/wrestling_scoreboard_client/lib/l10n/app_de.arb index 39b78fc0..8d7e56f2 100644 --- a/wrestling_scoreboard_client/lib/l10n/app_de.arb +++ b/wrestling_scoreboard_client/lib/l10n/app_de.arb @@ -80,6 +80,7 @@ "participatingTeams": "Teilnehmende Mannschaften", "league": "Liga", "leagues": "Ligen", + "competitions": "Turniere", "match": "Begegnung", "matches": "Begegnungen", "matchNumber": "Begegnungs-ID / Kampf-ID", diff --git a/wrestling_scoreboard_client/lib/l10n/app_en.arb b/wrestling_scoreboard_client/lib/l10n/app_en.arb index 8059b3ad..2f6ca433 100644 --- a/wrestling_scoreboard_client/lib/l10n/app_en.arb +++ b/wrestling_scoreboard_client/lib/l10n/app_en.arb @@ -83,6 +83,7 @@ "participatingTeams": "Participating Teams", "league": "League", "leagues": "Leagues", + "competitions": "Competitions", "match": "Match", "matches": "Matches", "matchNumber": "Match-ID", diff --git a/wrestling_scoreboard_client/lib/ui/home/competitions_view.dart b/wrestling_scoreboard_client/lib/ui/home/competitions_view.dart new file mode 100644 index 00000000..9e03a186 --- /dev/null +++ b/wrestling_scoreboard_client/lib/ui/home/competitions_view.dart @@ -0,0 +1,10 @@ +import 'package:flutter/material.dart'; + +class CompetitionsView extends StatelessWidget { + const CompetitionsView({super.key}); + + @override + Widget build(BuildContext context) { + return const Center(child: Text('Not yet implemented')); + } +} diff --git a/wrestling_scoreboard_client/lib/ui/home/home.dart b/wrestling_scoreboard_client/lib/ui/home/home.dart index 5ed2fa02..a500c492 100644 --- a/wrestling_scoreboard_client/lib/ui/home/home.dart +++ b/wrestling_scoreboard_client/lib/ui/home/home.dart @@ -3,6 +3,7 @@ import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:wrestling_scoreboard_client/provider/network_provider.dart'; import 'package:wrestling_scoreboard_client/ui/home/clubs_view.dart'; +import 'package:wrestling_scoreboard_client/ui/home/competitions_view.dart'; import 'package:wrestling_scoreboard_client/ui/home/leagues_view.dart'; import 'package:wrestling_scoreboard_client/util/network/remote/web_socket.dart'; @@ -65,7 +66,7 @@ class HomeState extends ConsumerState { Widget build(BuildContext context) { final localizations = AppLocalizations.of(context)!; return DefaultTabController( - length: 2, + length: 3, child: Scaffold( appBar: AppBar( title: Text(localizations.home), @@ -91,6 +92,17 @@ class HomeState extends ConsumerState { ], ), ), + Tab( + child: Row( + mainAxisSize: MainAxisSize.min, + children: [ + // const Icon(Icons.social_leaderboard), + const Icon(Icons.leaderboard), + const SizedBox(width: 8), + Text(localizations.competitions), + ], + ), + ), ], ), ), @@ -98,6 +110,7 @@ class HomeState extends ConsumerState { children: [ LeaguesView(), ClubsView(), + CompetitionsView(), ], ), ),