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,
backgroundColor: AppColors.mainColor,
actionsList: <Widget>[
(state.getKeyInfosData.value.keyRight == 1)
? GestureDetector(
if (state.getKeyInfosData.value.keyRight == 1)
GestureDetector(
onTap: () async {
final bool? isDemoMode =
await Storage.getBool(ifIsDemoModeOrNot);
@ -58,7 +58,8 @@ class _CheckingInListPageState extends State<CheckingInListPage> {
width: 36.w,
height: 36.w,
))
: Container(),
else
Container(),
SizedBox(width: 30.w),
],
),
@ -399,26 +400,21 @@ class _CheckingInListPageState extends State<CheckingInListPage> {
SizedBox(
width: 20.w,
),
if (headUrl == null || headUrl == '')
Image.asset(
getTypeIcon(type ?? 0),
width: 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),
Expanded(
child: Text(