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
+ 22
33
Compare changes
  • Side-by-side
  • Inline
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);
@@ -20,12 +18,7 @@ class _ProfilePage extends State<Profile> {
appBar: AppBar(
title: const Text('Konto'),
actions: <Widget>[
IconButton(onPressed:(){
Navigator.push(
context,
MaterialPageRoute(builder: (context) => const SettingScreen()),
);
}, icon: Icon(Icons.settings))
IconButton(onPressed: null, icon: Icon(Icons.settings))
],
backgroundColor: Colors.brown,
),
@@ -66,9 +59,9 @@ class _ProfilePage extends State<Profile> {
mainAxisAlignment: MainAxisAlignment.center,
children: [
ProfileEntry(
category: "Name", description: "Very long example Name"),
category: "Name", description: "A very long example Name"),
ProfileEntry(category: "Age", description: "123"),
ProfileEntry(category: "Birthday", description: "12.34.")
ProfileEntry(category: "Birthday", description: "30.02.")
],
),
)
@@ -94,31 +87,27 @@ class ProfileEntry extends StatefulWidget {
class _ProfileEntryState extends State<ProfileEntry> {
@override
Widget build(BuildContext context) {
return TextButton(
onPressed: () { },
style: TextButton.styleFrom(primary: Colors.brown),
child: Row(
children: [
Expanded(
flex: 30,
child: Container(
padding: EdgeInsets.fromLTRB(0, 5, 10, 5),
child: Text(
widget.category + ":",
textAlign: TextAlign.right,
),
return Row(
children: [
Expanded(
flex: 30,
child: Container(
padding: EdgeInsets.fromLTRB(0, 5, 10, 5),
child: Text(
widget.category + ":",
textAlign: TextAlign.right,
),
),
Expanded(
flex: 70,
child: Container(
padding: const EdgeInsets.fromLTRB(10, 5, 0, 5),
child: Text(widget.description),
),
)
],
),
),
Expanded(
flex: 70,
child: Container(
padding: const EdgeInsets.fromLTRB(10, 5, 0, 5),
child: Text(widget.description),
),
)
],
);
}
}
Loading