|
@@ -11,6 +11,7 @@ class UserInfo extends StatefulWidget {
|
11
|
11
|
}
|
12
|
12
|
|
13
|
13
|
class _UserInfo extends State<UserInfo> {
|
|
14
|
+ String name = '';
|
14
|
15
|
@override
|
15
|
16
|
Widget build(BuildContext context) {
|
16
|
17
|
return Scaffold(
|
|
@@ -28,11 +29,14 @@ class _UserInfo extends State<UserInfo> {
|
28
|
29
|
),
|
29
|
30
|
),
|
30
|
31
|
body: Container(
|
|
32
|
+ color: Color(0xFFffffff),
|
31
|
33
|
padding: EdgeInsets.all(15.w),
|
32
|
34
|
child: Column(
|
|
35
|
+ crossAxisAlignment: CrossAxisAlignment.start,
|
33
|
36
|
children: [
|
34
|
37
|
Container(
|
35
|
|
- height: 92.h,
|
|
38
|
+ margin: EdgeInsets.fromLTRB(0, 0, 0, 40.h),
|
|
39
|
+ padding: EdgeInsets.symmetric(vertical: 15.h, horizontal: 0),
|
36
|
40
|
decoration: BoxDecoration(
|
37
|
41
|
color: const Color(0xFFFFFFFF),
|
38
|
42
|
boxShadow: [
|
|
@@ -43,10 +47,78 @@ class _UserInfo extends State<UserInfo> {
|
43
|
47
|
),
|
44
|
48
|
],
|
45
|
49
|
),
|
46
|
|
- child: Row(children: [
|
47
|
|
- Text('666'),
|
48
|
|
- ]),
|
|
50
|
+ child: Row(
|
|
51
|
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
52
|
+ children: [
|
|
53
|
+ Image.asset(
|
|
54
|
+ 'images/userMoren.png',
|
|
55
|
+ width: 62.w,
|
|
56
|
+ height: 62.w,
|
|
57
|
+ ),
|
|
58
|
+ Text(
|
|
59
|
+ '更换头像',
|
|
60
|
+ style: TextStyle(
|
|
61
|
+ fontSize: 17.sp,
|
|
62
|
+ color: Color(0xFF333333),
|
|
63
|
+ letterSpacing: 2,
|
|
64
|
+ fontWeight: FontWeight.w500),
|
|
65
|
+ ),
|
|
66
|
+ ]),
|
49
|
67
|
),
|
|
68
|
+ Text(
|
|
69
|
+ '姓名:',
|
|
70
|
+ style: TextStyle(
|
|
71
|
+ color: const Color(0xFF333333),
|
|
72
|
+ fontSize: 17.sp,
|
|
73
|
+ letterSpacing: 2,
|
|
74
|
+ fontWeight: FontWeight.bold),
|
|
75
|
+ ),
|
|
76
|
+ Container(
|
|
77
|
+ margin: EdgeInsets.fromLTRB(0, 20.h, 0, 40.h),
|
|
78
|
+ padding: EdgeInsets.symmetric(vertical: 19.h, horizontal: 0),
|
|
79
|
+ decoration: BoxDecoration(
|
|
80
|
+ color: const Color(0xFFFFFFFF),
|
|
81
|
+ boxShadow: [
|
|
82
|
+ BoxShadow(
|
|
83
|
+ color: const Color(0x1F000000),
|
|
84
|
+ offset: Offset(0, 1.w),
|
|
85
|
+ blurRadius: 0,
|
|
86
|
+ ),
|
|
87
|
+ ],
|
|
88
|
+ ),
|
|
89
|
+ child: Column(
|
|
90
|
+ children: [
|
|
91
|
+ Row(
|
|
92
|
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
93
|
+ children: [
|
|
94
|
+ Container(
|
|
95
|
+ width: 200.w,
|
|
96
|
+ child: TextFormField(
|
|
97
|
+ initialValue: name,
|
|
98
|
+ style: TextStyle(
|
|
99
|
+ color: Color(0xFF333333),
|
|
100
|
+ fontSize: 17.sp,
|
|
101
|
+ letterSpacing: 2,
|
|
102
|
+ fontWeight: FontWeight.bold),
|
|
103
|
+ decoration: const InputDecoration(
|
|
104
|
+ isCollapsed: true,
|
|
105
|
+ hintText: '请输入您的姓名',
|
|
106
|
+ border: InputBorder.none,
|
|
107
|
+ counterText: '', //去掉计数
|
|
108
|
+ floatingLabelBehavior:
|
|
109
|
+ FloatingLabelBehavior.never,
|
|
110
|
+ ),
|
|
111
|
+ onChanged: (e) {},
|
|
112
|
+ ),
|
|
113
|
+ ),
|
|
114
|
+ Image.asset(
|
|
115
|
+ 'images/icons/cancel.png',
|
|
116
|
+ width: 18.w,
|
|
117
|
+ height: 18.w,
|
|
118
|
+ )
|
|
119
|
+ ]),
|
|
120
|
+ ],
|
|
121
|
+ )),
|
50
|
122
|
],
|
51
|
123
|
),
|
52
|
124
|
),
|