-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.dart
112 lines (109 loc) · 3.02 KB
/
profile.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
import 'package:flutter/material.dart';
import 'package:my_first_app/address2.dart';
import 'package:my_first_app/drawermenu.dart';
class profilepage extends StatefulWidget {
const profilepage({super.key});
@override
State<profilepage> createState() => _profilepageState();
}
class _profilepageState extends State<profilepage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
elevation: 0.0,
backgroundColor: Colors.transparent,
foregroundColor: Colors.black,
centerTitle: true,
title: Text('Profile'),
leading: IconButton(
onPressed: () => Navigator.pop(context),
icon: Icon(Icons.arrow_back)),
actions: [
Padding(
padding: const EdgeInsets.all(8.0),
child: TextButton(
onPressed: () {},
child: Text(
"save",
style: TextStyle(fontSize: 20, color: Colors.black),
),
),
)
],
),
body: Container(
child: Column(
children: [
ListTile(
leading: CircleAvatar(
backgroundImage: AssetImage('assets/fruit/profile.1.jpg'),
),
title: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text("Name",
style:
TextStyle(fontSize: 20, fontWeight: FontWeight.bold)),
Text("phone")
],
),
),
ListTile(
leading: Container(
child: Icon(
Icons.shopping_bag_outlined,
color: Colors.black,
size: 25,
),
),
title: Text(
"My orders",
style: TextStyle(fontWeight: FontWeight.bold),
),
trailing: Text("14"),
),
ListTile(
leading: Container(
child: Icon(
Icons.perm_identity_outlined,
color: Colors.black,
size: 25,
),
),
title: Text(
"My details",
style: TextStyle(fontWeight: FontWeight.bold),
),
),
ListTile(
leading: Container(
child: Icon(
Icons.place_outlined,
color: Colors.black,
size: 25,
),
),
title: Text(
"Address book",
style: TextStyle(fontWeight: FontWeight.bold),
),
),
ListTile(
leading: Container(
child: Icon(
Icons.logout_outlined,
color: Colors.black,
size: 25,
),
),
title: Text(
"Signout",
style: TextStyle(fontWeight: FontWeight.bold),
),
)
],
)),
);
}
}