File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -263,19 +263,18 @@ class UserInfoCard extends StatelessWidget {
263
263
),
264
264
),
265
265
Padding (
266
- padding: const EdgeInsets .only (left: 20 , top: 4 ),
267
- child: Row (
268
- children: [
269
- Icon (data.gender == 1 ? Icons .male : Icons .female, size: 20.0 ),
270
- SizedBox (width: 5 ),
271
- Text (
272
- '${DateUtil .fromToday (data .logintime )}活跃' ,
273
- style: const TextStyle (
274
- fontSize: 14 ,
275
- ),
276
- ),
277
- ],
278
- )),
266
+ padding: const EdgeInsets .only (left: 20 , top: 4 ),
267
+ child: (data.gender == 0 || data.gender == 1 )
268
+ ? Row (
269
+ children: [
270
+ Icon (data.gender == 1 ? Icons .male : Icons .female,
271
+ size: 20.0 ),
272
+ SizedBox (width: 5 ),
273
+ Text ('${DateUtil .fromToday (data .logintime )}活跃' ),
274
+ ],
275
+ )
276
+ : Text ('${DateUtil .fromToday (data .logintime )}活跃' ),
277
+ ),
279
278
],
280
279
);
281
280
}
You can’t perform that action at this time.
0 commit comments