Implemented fullscreen dialog

This commit is contained in:
Felix Kirchner
2025-04-19 11:29:24 +02:00
parent b2fcdf885d
commit 661dab488e
2 changed files with 10 additions and 2 deletions

View File

@@ -75,6 +75,7 @@ class _ActiveGameViewState extends State<ActiveGameView> {
Navigator.push(
context,
CupertinoPageRoute(
fullscreenDialog: true,
builder: (context) => RoundView(
gameSession: widget.gameSession,
roundNumber: index + 1),

View File

@@ -45,10 +45,17 @@ class _RoundViewState extends State<RoundView> {
@override
Widget build(BuildContext context) {
return CupertinoPageScaffold(
navigationBar: const CupertinoNavigationBar(
navigationBar: CupertinoNavigationBar(
transitionBetweenRoutes: true,
middle: Text('Ergebnisse'),
middle: const Text('Ergebnisse'),
previousPageTitle: 'Übersicht',
leading: CupertinoButton(
padding: EdgeInsets.zero,
onPressed: () {
Navigator.pop(context);
},
child: Text('Abbrechen'),
),
),
child: Stack(
children: [