From d18d48493259c78533ed002dffeb0eb5e2908eb1 Mon Sep 17 00:00:00 2001 From: "k.mannweiler" <2012491@stud.hs-mannheim.de> Date: Mon, 27 Feb 2023 19:34:11 +0100 Subject: [PATCH] Center every page --- lib/pages/main_page.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/pages/main_page.dart b/lib/pages/main_page.dart index 65024a9..f373582 100644 --- a/lib/pages/main_page.dart +++ b/lib/pages/main_page.dart @@ -39,8 +39,9 @@ class MyHomePageState extends State { appBar: AppBar( title: Text( '${pages.keys.elementAt(_selectedIndex)} ${_isConfigured ? "Gruppe $group" : ""}')), - body: SingleChildScrollView( - child: pages.values.elementAt(_selectedIndex)['page']), + body: Center( + child: SingleChildScrollView( + child: pages.values.elementAt(_selectedIndex)['page'])), bottomNavigationBar: NavigationBar( onDestinationSelected: _onItemTapped, selectedIndex: _selectedIndex,