Added new Buttons and new GraphView
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
"player": "Spieler:in",
|
"player": "Spieler:in",
|
||||||
"players": "Spieler:innen",
|
"players": "Spieler:innen",
|
||||||
"name": "Name",
|
"name": "Name",
|
||||||
|
"back": "Zurück",
|
||||||
|
|
||||||
"home": "Home",
|
"home": "Home",
|
||||||
"about": "Über",
|
"about": "Über",
|
||||||
@@ -63,6 +64,8 @@
|
|||||||
"done": "Fertig",
|
"done": "Fertig",
|
||||||
"next_round": "Nächste Runde",
|
"next_round": "Nächste Runde",
|
||||||
|
|
||||||
|
"game_statistics": "Spielstatistiken",
|
||||||
|
|
||||||
"settings": "Einstellungen",
|
"settings": "Einstellungen",
|
||||||
"cabo_penalty": "Cabo-Strafe",
|
"cabo_penalty": "Cabo-Strafe",
|
||||||
"cabo_penalty_subtitle": "... für falsches Cabo sagen",
|
"cabo_penalty_subtitle": "... für falsches Cabo sagen",
|
||||||
|
|||||||
@@ -176,6 +176,12 @@ abstract class AppLocalizations {
|
|||||||
/// **'Name'**
|
/// **'Name'**
|
||||||
String get name;
|
String get name;
|
||||||
|
|
||||||
|
/// No description provided for @back.
|
||||||
|
///
|
||||||
|
/// In de, this message translates to:
|
||||||
|
/// **'Zurück'**
|
||||||
|
String get back;
|
||||||
|
|
||||||
/// No description provided for @home.
|
/// No description provided for @home.
|
||||||
///
|
///
|
||||||
/// In de, this message translates to:
|
/// In de, this message translates to:
|
||||||
@@ -356,6 +362,12 @@ abstract class AppLocalizations {
|
|||||||
/// **'Nächste Runde'**
|
/// **'Nächste Runde'**
|
||||||
String get next_round;
|
String get next_round;
|
||||||
|
|
||||||
|
/// No description provided for @game_statistics.
|
||||||
|
///
|
||||||
|
/// In de, this message translates to:
|
||||||
|
/// **'Spielstatistiken'**
|
||||||
|
String get game_statistics;
|
||||||
|
|
||||||
/// No description provided for @settings.
|
/// No description provided for @settings.
|
||||||
///
|
///
|
||||||
/// In de, this message translates to:
|
/// In de, this message translates to:
|
||||||
|
|||||||
@@ -47,6 +47,9 @@ class AppLocalizationsDe extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get name => 'Name';
|
String get name => 'Name';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get back => 'Zurück';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get home => 'Home';
|
String get home => 'Home';
|
||||||
|
|
||||||
@@ -146,6 +149,9 @@ class AppLocalizationsDe extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get next_round => 'Nächste Runde';
|
String get next_round => 'Nächste Runde';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get game_statistics => 'Spielstatistiken';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get settings => 'Einstellungen';
|
String get settings => 'Einstellungen';
|
||||||
|
|
||||||
|
|||||||
@@ -47,6 +47,9 @@ class AppLocalizationsEn extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get name => 'Name';
|
String get name => 'Name';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get back => 'Zurück';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get home => 'Home';
|
String get home => 'Home';
|
||||||
|
|
||||||
@@ -58,7 +61,7 @@ class AppLocalizationsEn extends AppLocalizations {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
String get empty_text_2 =>
|
String get empty_text_2 =>
|
||||||
'Add a new round using the button in the top right corner';
|
'Add a new round using the button in the top right corner.';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get delete_game_title => 'Delete game?';
|
String get delete_game_title => 'Delete game?';
|
||||||
@@ -143,6 +146,9 @@ class AppLocalizationsEn extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get next_round => 'Next Round';
|
String get next_round => 'Next Round';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get game_statistics => 'Spielstatistiken';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get settings => 'Settings';
|
String get settings => 'Settings';
|
||||||
|
|
||||||
@@ -150,13 +156,13 @@ class AppLocalizationsEn extends AppLocalizations {
|
|||||||
String get cabo_penalty => 'Cabo Penalty';
|
String get cabo_penalty => 'Cabo Penalty';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get cabo_penalty_subtitle => '... for falsely calling Cabo';
|
String get cabo_penalty_subtitle => '... for falsely calling Cabo.';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get point_limit => 'Point Limit';
|
String get point_limit => 'Point Limit';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get point_limit_subtitle => '... the game ends here';
|
String get point_limit_subtitle => '... the game ends here.';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get reset_to_default => 'Reset to Default';
|
String get reset_to_default => 'Reset to Default';
|
||||||
@@ -196,5 +202,5 @@ class AppLocalizationsEn extends AppLocalizations {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
String get about_text =>
|
String get about_text =>
|
||||||
'Hey :) Thanks for being one of the first users of my first app! I’ve put a lot of work into this project, and even though I (hopefully) thought of a lot, not everything will work 100% yet. So if you discover any bugs or have feedback on the design or usability, please let me know via the Testflight app or a message / email. Thank you very much!';
|
'Hey :) Thanks for being one of the first users of my app! I’ve put a lot of work into this project, and even though I tried to think of everything, it might not work perfectly just yet. So if you discover any bugs or have feedback on the design or usability, please let me know via the TestFlight app or by sending me a message or email. Thank you very much!';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1,6 @@
|
|||||||
{}
|
{
|
||||||
|
"en": [
|
||||||
|
"back",
|
||||||
|
"game_statistics"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
import 'package:cabo_counter/data/game_session.dart';
|
import 'package:cabo_counter/data/game_session.dart';
|
||||||
import 'package:cabo_counter/l10n/app_localizations.dart';
|
import 'package:cabo_counter/l10n/app_localizations.dart';
|
||||||
import 'package:cabo_counter/utility/custom_theme.dart';
|
import 'package:cabo_counter/utility/custom_theme.dart';
|
||||||
|
import 'package:cabo_counter/views/graph_view.dart';
|
||||||
import 'package:cabo_counter/views/round_view.dart';
|
import 'package:cabo_counter/views/round_view.dart';
|
||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class ActiveGameView extends StatefulWidget {
|
class ActiveGameView extends StatefulWidget {
|
||||||
final GameSession gameSession;
|
final GameSession gameSession;
|
||||||
@@ -107,6 +109,29 @@ class _ActiveGameViewState extends State<ActiveGameView> {
|
|||||||
));
|
));
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.fromLTRB(10, 10, 0, 0),
|
||||||
|
child: Text(
|
||||||
|
AppLocalizations.of(context).game,
|
||||||
|
style: CustomTheme.rowTitle,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Column(
|
||||||
|
children: [
|
||||||
|
CupertinoListTile(
|
||||||
|
title: const Text('Statistiken'),
|
||||||
|
onTap: () => Navigator.push(
|
||||||
|
context,
|
||||||
|
MaterialPageRoute(
|
||||||
|
builder: (_) => const GraphView()))),
|
||||||
|
const CupertinoListTile(title: Text('Spiel löschen')),
|
||||||
|
const CupertinoListTile(
|
||||||
|
title: Text(
|
||||||
|
'Neues Spiel mit gleichen Einstellungen')),
|
||||||
|
const CupertinoListTile(
|
||||||
|
title: Text('Spiel exportieren')),
|
||||||
|
],
|
||||||
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
22
lib/views/graph_view.dart
Normal file
22
lib/views/graph_view.dart
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
import 'package:cabo_counter/l10n/app_localizations.dart';
|
||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
|
|
||||||
|
class GraphView extends StatefulWidget {
|
||||||
|
const GraphView({super.key});
|
||||||
|
|
||||||
|
@override
|
||||||
|
State<GraphView> createState() => _GraphViewState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _GraphViewState extends State<GraphView> {
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return CupertinoPageScaffold(
|
||||||
|
navigationBar: CupertinoNavigationBar(
|
||||||
|
middle: Text(AppLocalizations.of(context).game_statistics),
|
||||||
|
previousPageTitle: AppLocalizations.of(context).back,
|
||||||
|
),
|
||||||
|
child: const Center(child: Text('GraphView')),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,7 +2,7 @@ name: cabo_counter
|
|||||||
description: "Mobile app for the card game Cabo"
|
description: "Mobile app for the card game Cabo"
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
|
|
||||||
version: 0.3.1+237
|
version: 0.3.1+239
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.5.4
|
sdk: ^3.5.4
|
||||||
|
|||||||
Reference in New Issue
Block a user