diff --git a/lib/home.dart b/lib/home.dart index 2ad5f71..3feae26 100644 --- a/lib/home.dart +++ b/lib/home.dart @@ -153,21 +153,17 @@ class _MyHomePageState extends State { TextStyle(fontSize: 30, fontWeight: FontWeight.bold); static const List _widgetOptions = [ Text( - 'Index 0: Home', + 'Index 0: News', style: optionStyle, ), Text( - 'Index 1: Business', + 'Index 1: Mängel', style: optionStyle, ), Text( - 'Index 2: School', + 'Index 2: Profil', style: optionStyle, - ), - Text( - 'Index 3: Settings', - style: optionStyle, - ), + ) ]; void _onItemTapped(int index) { @@ -180,36 +176,29 @@ class _MyHomePageState extends State { Widget build(BuildContext context) { return Scaffold( appBar: AppBar( - title: const Text('BottomNavigationBar Sample'), + title: const Text('Oggauer Gemeinde Trommler'), ), body: Center( child: _widgetOptions.elementAt(_selectedIndex), ), bottomNavigationBar: BottomNavigationBar( - items: const [ + items: const + [ BottomNavigationBarItem( - icon: Icon(Icons.home), - label: 'Home', - backgroundColor: Colors.red, + icon: Icon(Icons.newspaper), + label: 'News', ), BottomNavigationBarItem( - icon: Icon(Icons.business), - label: 'Business', - backgroundColor: Colors.green, + icon: Icon(Icons.report), + label: 'Mängel', ), BottomNavigationBarItem( - icon: Icon(Icons.school), - label: 'School', - backgroundColor: Colors.purple, - ), - BottomNavigationBarItem( - icon: Icon(Icons.settings), - label: 'Settings', - backgroundColor: Colors.pink, + icon: Icon(Icons.person), + label: 'Profil', ), ], currentIndex: _selectedIndex, - selectedItemColor: Colors.amber[800], + selectedItemColor: Colors.blue, onTap: _onItemTapped, ), );