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( appBar: AppBar(
title: Text( title: Text(
'${pages.keys.elementAt(_selectedIndex)} ${_isConfigured ? "Gruppe $group" : ""}')), '${pages.keys.elementAt(_selectedIndex)} ${_isConfigured ? "Gruppe $group" : ""}')),
body: SingleChildScrollView( body: Center(
child: pages.values.elementAt(_selectedIndex)['page']), child: SingleChildScrollView(
child: pages.values.elementAt(_selectedIndex)['page'])),
bottomNavigationBar: NavigationBar( bottomNavigationBar: NavigationBar(
onDestinationSelected: _onItemTapped, onDestinationSelected: _onItemTapped,
selectedIndex: _selectedIndex, selectedIndex: _selectedIndex,