Skip to content
Snippets Groups Projects
Commit 6715ef28 authored by Anager's avatar Anager
Browse files

Profile and Settings

parent 1ced495c
No related branches found
No related tags found
1 merge request!2Home page chaitanya
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:deggendorf_app/bottom_navigation_bar_buttons/settings/settings.dart';
class Profile extends StatefulWidget { class Profile extends StatefulWidget {
const Profile({Key? key}) : super(key: key); const Profile({Key? key}) : super(key: key);
...@@ -19,7 +20,12 @@ class _ProfilePage extends State<Profile> { ...@@ -19,7 +20,12 @@ class _ProfilePage extends State<Profile> {
appBar: AppBar( appBar: AppBar(
title: const Text('Konto'), title: const Text('Konto'),
actions: <Widget>[ actions: <Widget>[
IconButton(onPressed: null, icon: Icon(Icons.settings)) IconButton(onPressed:(){
Navigator.push(
context,
MaterialPageRoute(builder: (context) => const SettingScreen()),
);
}, icon: Icon(Icons.settings))
], ],
backgroundColor: Colors.brown, backgroundColor: Colors.brown,
), ),
......
...@@ -3,7 +3,6 @@ import 'package:flutter/material.dart'; ...@@ -3,7 +3,6 @@ import 'package:flutter/material.dart';
import 'bottom_navigation_bar_buttons/forum/forum.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/settings/settings.dart';
void main() { void main() {
runApp(const MyApp()); runApp(const MyApp());
...@@ -51,7 +50,7 @@ class _MyHomePageState extends State<MyHomePage> { ...@@ -51,7 +50,7 @@ class _MyHomePageState extends State<MyHomePage> {
//Index: 2, //Index: 2,
Forum(), Forum(),
//Index: 3 //Index: 3
SecondRoute(), Profile(),
//Index: 4 //Index: 4
]; ];
......
...@@ -391,7 +391,7 @@ packages: ...@@ -391,7 +391,7 @@ packages:
name: win32 name: win32
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.4.4" version: "2.5.1"
xdg_directories: xdg_directories:
dependency: transitive dependency: transitive
description: description:
......
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