Implemented fullscreen dialog
This commit is contained in:
@@ -75,6 +75,7 @@ class _ActiveGameViewState extends State<ActiveGameView> {
|
|||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
CupertinoPageRoute(
|
CupertinoPageRoute(
|
||||||
|
fullscreenDialog: true,
|
||||||
builder: (context) => RoundView(
|
builder: (context) => RoundView(
|
||||||
gameSession: widget.gameSession,
|
gameSession: widget.gameSession,
|
||||||
roundNumber: index + 1),
|
roundNumber: index + 1),
|
||||||
|
|||||||
@@ -45,10 +45,17 @@ class _RoundViewState extends State<RoundView> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return CupertinoPageScaffold(
|
return CupertinoPageScaffold(
|
||||||
navigationBar: const CupertinoNavigationBar(
|
navigationBar: CupertinoNavigationBar(
|
||||||
transitionBetweenRoutes: true,
|
transitionBetweenRoutes: true,
|
||||||
middle: Text('Ergebnisse'),
|
middle: const Text('Ergebnisse'),
|
||||||
previousPageTitle: 'Übersicht',
|
previousPageTitle: 'Übersicht',
|
||||||
|
leading: CupertinoButton(
|
||||||
|
padding: EdgeInsets.zero,
|
||||||
|
onPressed: () {
|
||||||
|
Navigator.pop(context);
|
||||||
|
},
|
||||||
|
child: Text('Abbrechen'),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
child: Stack(
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
|
|||||||
Reference in New Issue
Block a user