Skip to content
Snippets Groups Projects
Commit 0dff5680 authored by benedikts's avatar benedikts
Browse files

Moved Settings button to top of Profile

parent 431c77cc
No related branches found
No related tags found
2 merge requests!1Profile benedikt,!2Home page chaitanya
import 'package:flutter/material.dart';
import '../../main.dart';
/*
profile Page
*/
class Profile extends StatelessWidget {
const Profile({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Konto'),
actions: <Widget>[
IconButton(onPressed: null, icon: Icon(Icons.settings))
],
backgroundColor: Colors.brown,
),
body: const Center(
child: Text("Diese Seite wurde noch nicht entwickelt!!!")),
);
}
}
......@@ -2,6 +2,7 @@ import 'package:deggendorf_app/bottom_navigation_bar_buttons/weather/current_wea
import 'package:flutter/material.dart';
import 'bottom_navigation_bar_buttons/forum/forum.dart';
import 'bottom_navigation_bar_buttons/profile/profile.dart';
void main() {
runApp(const MyApp());
......@@ -49,9 +50,8 @@ class _MyHomePageState extends State<MyHomePage> {
//Index: 2,
Forum(),
//Index: 3
SecondRoute(),
Profile(),
//Index: 4
SecondRoute()
];
void _onItemTapped(int index) {
......@@ -71,6 +71,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 +98,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],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment