faet:代码补充

This commit is contained in:
anfe 2024-05-20 15:09:09 +08:00
parent 04d2dde5eb
commit 11c90ca414

View File

@ -38,8 +38,8 @@ class _CheckingInListPageState extends State<CheckingInListPage> {
haveBack: true, haveBack: true,
backgroundColor: AppColors.mainColor, backgroundColor: AppColors.mainColor,
actionsList: <Widget>[ actionsList: <Widget>[
(state.getKeyInfosData.value.keyRight == 1) if (state.getKeyInfosData.value.keyRight == 1)
? GestureDetector( GestureDetector(
onTap: () async { onTap: () async {
final bool? isDemoMode = final bool? isDemoMode =
await Storage.getBool(ifIsDemoModeOrNot); await Storage.getBool(ifIsDemoModeOrNot);
@ -58,7 +58,8 @@ class _CheckingInListPageState extends State<CheckingInListPage> {
width: 36.w, width: 36.w,
height: 36.w, height: 36.w,
)) ))
: Container(), else
Container(),
SizedBox(width: 30.w), SizedBox(width: 30.w),
], ],
), ),
@ -399,26 +400,21 @@ class _CheckingInListPageState extends State<CheckingInListPage> {
SizedBox( SizedBox(
width: 20.w, width: 20.w,
), ),
if (headUrl == null || headUrl == '')
Image.asset( Image.asset(
getTypeIcon(type ?? 0), getTypeIcon(type ?? 0),
width: 60.w, width: 60.w,
height: 60.w, height: 60.w,
)
else
ClipRRect(
borderRadius: BorderRadius.circular(100.w),
child: Image.network(
headUrl,
width: 60.w,
height: 60.w,
),
), ),
// Container(
// width: 60.h,
// height: 60.h,
// decoration: BoxDecoration(
// color: AppColors.mainColor,
// border: Border.all(width: 1, color: AppColors.mainColor),
// borderRadius: BorderRadius.circular(30.h),
// ),
// padding: EdgeInsets.all(10.w),
// child: Image.asset(
// 'images/controls_user.png',
// width: 30.w,
// height: 30.w,
// color: Colors.white,
// )),
SizedBox(width: 20.w), SizedBox(width: 20.w),
Expanded( Expanded(
child: Text( child: Text(