From 0dff5680ffbf055669c4a141b69c4d3b5fdb8ff2 Mon Sep 17 00:00:00 2001
From: benedikts <sosnowskybene@gmail.com>
Date: Wed, 30 Mar 2022 17:32:06 +0200
Subject: [PATCH] Moved Settings button to top of Profile

---
 .../profile/profile.dart                      | 25 +++++++++++++++++++
 lib/main.dart                                 | 10 +++-----
 2 files changed, 28 insertions(+), 7 deletions(-)
 create mode 100644 lib/bottom_navigation_bar_buttons/profile/profile.dart

diff --git a/lib/bottom_navigation_bar_buttons/profile/profile.dart b/lib/bottom_navigation_bar_buttons/profile/profile.dart
new file mode 100644
index 0000000..0236506
--- /dev/null
+++ b/lib/bottom_navigation_bar_buttons/profile/profile.dart
@@ -0,0 +1,25 @@
+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!!!")),
+    );
+  }
+}
diff --git a/lib/main.dart b/lib/main.dart
index 5a6d046..d677e7b 100644
--- a/lib/main.dart
+++ b/lib/main.dart
@@ -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],
-- 
GitLab