Center every page

main
Kai Mannweiler 2023-02-27 19:34:11 +01:00
parent 2c96f711b6
commit d18d484932
1 changed files with 3 additions and 2 deletions

View File

@ -39,8 +39,9 @@ class MyHomePageState extends State<MyHomePage> {
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,