Added new Buttons and new GraphView
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import 'package:cabo_counter/data/game_session.dart';
|
||||
import 'package:cabo_counter/l10n/app_localizations.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:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class ActiveGameView extends StatefulWidget {
|
||||
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')),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user