Skip to content
Snippets Groups Projects

Home page chaitanya

Merged Chaitanya Mangra requested to merge home_page_Chaitanya into Deggendorf_App_1.0
1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
+ 7
9
import 'package:deggendorf_app/bottom_navigation_bar_buttons/weather/current_weather.dart';
import 'package:deggendorf_app/bottom_navigation_bar_buttons/home_page/home_page.dart';
import 'package:flutter/material.dart';
import 'bottom_navigation_bar_buttons/forum/forum.dart';
import 'bottom_navigation_bar_buttons/profile/profile.dart';
import 'bottom_navigation_bar_buttons/profile/profile.dart';
import 'bottom_navigation_bar_buttons/home_page/weather/current_weather.dart';
void main() {
runApp(const MyApp());
@@ -43,15 +46,14 @@ class _MyHomePageState extends State<MyHomePage> {
*/
static const List<Widget> _widgetOptions = <Widget>[
//Index: 0
CurrentWeather(),
HomePage(),
//Index: 1,
SecondRoute(),
//Index: 2,
Forum(),
//Index: 3
SecondRoute(),
Profile(),
//Index: 4
SecondRoute()
];
void _onItemTapped(int index) {
@@ -71,6 +73,7 @@ class _MyHomePageState extends State<MyHomePage> {
body: Center(
child: _widgetOptions.elementAt(_selectedIndex),
),
/*
From here are the bottom navigation bar's buttons
Each button has an icon, a label and a colour, each of which are optional
@@ -97,11 +100,6 @@ class _MyHomePageState extends State<MyHomePage> {
label: 'Konto',
backgroundColor: Colors.brown,
),
BottomNavigationBarItem(
icon: Icon(Icons.settings),
label: 'Einstellung',
backgroundColor: Colors.pink,
),
],
currentIndex: _selectedIndex,
selectedItemColor: Colors.amber[800],
Loading