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:deggendorf_app/bottom_navigation_bar_buttons/settings/settings.dart';
class Profile extends StatefulWidget {
const Profile({Key? key}) : super(key: key);
......@@ -19,7 +20,12 @@ class _ProfilePage extends State<Profile> {
appBar: AppBar(
title: const Text('Konto'),
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,
),
......
......@@ -3,7 +3,6 @@ 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/settings/settings.dart';
void main() {
runApp(const MyApp());
......@@ -51,7 +50,7 @@ class _MyHomePageState extends State<MyHomePage> {
//Index: 2,
Forum(),
//Index: 3
SecondRoute(),
Profile(),
//Index: 4
];
......
......@@ -391,7 +391,7 @@ packages:
name: win32
url: "https://pub.dartlang.org"
source: hosted
version: "2.4.4"
version: "2.5.1"
xdg_directories:
dependency: transitive
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