Center every page
parent
2c96f711b6
commit
d18d484932
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue