@@ -66,6 +66,7 @@ class ProfileScreen extends StatelessWidget {
66
66
) {
67
67
return Row (
68
68
children: [
69
+ SizedBox (width: UiSizes .width_20),
69
70
GetBuilder <ThemeController >(
70
71
builder: (themeController) => CircleAvatar (
71
72
backgroundColor: Theme .of (Get .context! ).colorScheme.secondary,
@@ -84,8 +85,20 @@ class ProfileScreen extends StatelessWidget {
84
85
Expanded (
85
86
child: MergeSemantics (
86
87
child: Column (
87
- crossAxisAlignment: CrossAxisAlignment .start ,
88
+ crossAxisAlignment: CrossAxisAlignment .center ,
88
89
children: [
90
+ if (isCreatorProfile == null && controller.isEmailVerified! )
91
+ const Padding (
92
+ padding: EdgeInsets .only (top: 10 ),
93
+ child: Row (
94
+ children: [
95
+ Icon (Icons .verified_user_outlined, color: Colors .green),
96
+ SizedBox (width: 5 ),
97
+ Text ("Verified" ,
98
+ style: TextStyle (color: Colors .green)),
99
+ ],
100
+ ),
101
+ ),
89
102
Text (
90
103
isCreatorProfile != null
91
104
? creatorName ?? ''
@@ -96,29 +109,30 @@ class ProfileScreen extends StatelessWidget {
96
109
overflow: TextOverflow .ellipsis,
97
110
),
98
111
),
99
- Text (
112
+ Chip (label : Text (
100
113
"@${isCreatorProfile != null ? '' : controller .userName }" ,
101
114
style: TextStyle (
102
115
fontSize: UiSizes .size_14,
103
116
overflow: TextOverflow .ellipsis,
104
117
),
105
118
),
106
- if (isCreatorProfile == null && controller.isEmailVerified ! )
107
- const Padding (
108
- padding : EdgeInsets . only (top : 10 ),
109
- child : Row (
110
- children : [
111
- Icon ( Icons .verified_user_outlined, color : Colors .green),
112
- SizedBox (width : 5 ) ,
113
- Text ( "Verified user" ,
114
- style : TextStyle (color : Colors .green)) ,
115
- ] ,
116
- ),
117
- ),
119
+ shape : RoundedRectangleBorder (
120
+ borderRadius : BorderRadius . circular ( 16 ),
121
+ side : BorderSide (color : Colors .grey.shade300 ),
122
+ ),
123
+ ),
124
+ // Text(
125
+ // "@${isCreatorProfile != null ? '' : controller.userName}" ,
126
+ // style: TextStyle(
127
+ // fontSize: UiSizes.size_14 ,
128
+ // overflow: TextOverflow.ellipsis ,
129
+ // ),
130
+ // ),
118
131
],
119
132
),
120
133
),
121
134
),
135
+ SizedBox (width: UiSizes .width_20),
122
136
],
123
137
);
124
138
}
@@ -178,20 +192,11 @@ class ProfileScreen extends StatelessWidget {
178
192
),
179
193
const SizedBox (width: 10 ),
180
194
if (isCreatorProfile == null )
181
- Expanded (
182
- child: ElevatedButton (
183
- onPressed: () {
184
- Get .toNamed (AppRoutes .settings);
185
- },
186
- child: const Row (
187
- mainAxisAlignment: MainAxisAlignment .center,
188
- children: [
189
- Icon (Icons .settings),
190
- SizedBox (width: 10 ),
191
- Text ("Settings" ),
192
- ],
193
- ),
194
- ),
195
+ ElevatedButton (
196
+ onPressed: () {
197
+ Get .toNamed (AppRoutes .settings);
198
+ },
199
+ child: Icon (Icons .settings),
195
200
),
196
201
],
197
202
);
0 commit comments