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