|
@@ -38,15 +38,12 @@ class Main extends BasicPage {
|
38
|
38
|
|
39
|
39
|
@override
|
40
|
40
|
Widget builder(BuildContext context) {
|
41
|
|
- print(store.user);
|
42
|
|
-
|
43
|
41
|
return Container(
|
44
|
42
|
decoration: const BoxDecoration(color: Colors.white),
|
45
|
43
|
child: ListView(
|
46
|
44
|
children: [
|
47
|
45
|
Stack(
|
48
|
46
|
children: [
|
49
|
|
- Obx(()=>
|
50
|
47
|
Positioned(
|
51
|
48
|
top: 0,
|
52
|
49
|
child: Container(
|
|
@@ -64,10 +61,16 @@ class Main extends BasicPage {
|
64
|
61
|
Container(
|
65
|
62
|
margin: EdgeInsets.fromLTRB(40.w, 0, 10.w, 0),
|
66
|
63
|
child: store.user().avatar != null
|
67
|
|
- ? Image.network(
|
68
|
|
- store.user().avatar.toString(),
|
69
|
|
- width: 63.w,
|
70
|
|
- height: 63.w,
|
|
64
|
+ ? Container(
|
|
65
|
+ clipBehavior: Clip.hardEdge,
|
|
66
|
+ decoration: BoxDecoration(
|
|
67
|
+ borderRadius: BorderRadius.all(
|
|
68
|
+ Radius.circular(31.5.w))),
|
|
69
|
+ child: Image.network(
|
|
70
|
+ store.user().avatar.toString(),
|
|
71
|
+ width: 63.w,
|
|
72
|
+ height: 63.w,
|
|
73
|
+ ),
|
71
|
74
|
)
|
72
|
75
|
: Image.asset(
|
73
|
76
|
'images/main/defaultAvatar.png',
|
|
@@ -80,7 +83,9 @@ class Main extends BasicPage {
|
80
|
83
|
crossAxisAlignment: CrossAxisAlignment.start,
|
81
|
84
|
children: [
|
82
|
85
|
Text(
|
83
|
|
- store.user().nickName != null?store.user().nickName.toString():'',
|
|
86
|
+ store.user().nickName != null
|
|
87
|
+ ? store.user().nickName.toString()
|
|
88
|
+ : '',
|
84
|
89
|
style: TextStyle(
|
85
|
90
|
color: Colors.white,
|
86
|
91
|
fontWeight: FontWeight.w500,
|
|
@@ -96,8 +101,9 @@ class Main extends BasicPage {
|
96
|
101
|
Container(
|
97
|
102
|
margin: EdgeInsets.fromLTRB(0, 19.h, 0, 0),
|
98
|
103
|
child: Text(
|
99
|
|
- store.user().nickName != null?
|
100
|
|
- store.user().phone.toString():'',
|
|
104
|
+ store.user().nickName != null
|
|
105
|
+ ? store.user().phone.toString()
|
|
106
|
+ : '',
|
101
|
107
|
style: TextStyle(
|
102
|
108
|
color: Colors.white,
|
103
|
109
|
fontWeight: FontWeight.w500,
|
|
@@ -117,14 +123,13 @@ class Main extends BasicPage {
|
117
|
123
|
),
|
118
|
124
|
),
|
119
|
125
|
),
|
120
|
|
- ),
|
121
|
126
|
Positioned(
|
122
|
127
|
right: 0,
|
123
|
128
|
top: 0,
|
124
|
129
|
child: Container(
|
125
|
130
|
decoration: const BoxDecoration(color: Color(0xb2000000)),
|
126
|
131
|
child: Text(
|
127
|
|
- '该账号归${store.user().nickName!=null?store.user().nickName.toString():''}所属',
|
|
132
|
+ '该账号归${store.user().nickName != null ? store.user().nickName.toString() : ''}所属',
|
128
|
133
|
style: TextStyle(color: Colors.white, fontSize: 12.sp),
|
129
|
134
|
),
|
130
|
135
|
),
|