faet:代码补充
This commit is contained in:
parent
04d2dde5eb
commit
11c90ca414
@ -38,27 +38,28 @@ class _CheckingInListPageState extends State<CheckingInListPage> {
|
||||
haveBack: true,
|
||||
backgroundColor: AppColors.mainColor,
|
||||
actionsList: <Widget>[
|
||||
(state.getKeyInfosData.value.keyRight == 1)
|
||||
? GestureDetector(
|
||||
onTap: () async {
|
||||
final bool? isDemoMode =
|
||||
await Storage.getBool(ifIsDemoModeOrNot);
|
||||
if (isDemoMode == false) {
|
||||
Get.toNamed(Routers.checkingInSetPage,
|
||||
arguments: <String, LockListInfoItemEntity>{
|
||||
'getKeyInfosData': state.getKeyInfosData.value,
|
||||
});
|
||||
} else {
|
||||
// Get.toNamed(Routers.selectLockTypePage);
|
||||
logic.showToast('演示模式');
|
||||
}
|
||||
},
|
||||
child: Image.asset(
|
||||
'images/main/icon_lockDetail_checkIn_set.png',
|
||||
width: 36.w,
|
||||
height: 36.w,
|
||||
))
|
||||
: Container(),
|
||||
if (state.getKeyInfosData.value.keyRight == 1)
|
||||
GestureDetector(
|
||||
onTap: () async {
|
||||
final bool? isDemoMode =
|
||||
await Storage.getBool(ifIsDemoModeOrNot);
|
||||
if (isDemoMode == false) {
|
||||
Get.toNamed(Routers.checkingInSetPage,
|
||||
arguments: <String, LockListInfoItemEntity>{
|
||||
'getKeyInfosData': state.getKeyInfosData.value,
|
||||
});
|
||||
} else {
|
||||
// Get.toNamed(Routers.selectLockTypePage);
|
||||
logic.showToast('演示模式');
|
||||
}
|
||||
},
|
||||
child: Image.asset(
|
||||
'images/main/icon_lockDetail_checkIn_set.png',
|
||||
width: 36.w,
|
||||
height: 36.w,
|
||||
))
|
||||
else
|
||||
Container(),
|
||||
SizedBox(width: 30.w),
|
||||
],
|
||||
),
|
||||
@ -399,26 +400,21 @@ class _CheckingInListPageState extends State<CheckingInListPage> {
|
||||
SizedBox(
|
||||
width: 20.w,
|
||||
),
|
||||
Image.asset(
|
||||
getTypeIcon(type ?? 0),
|
||||
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,
|
||||
// )),
|
||||
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,
|
||||
),
|
||||
),
|
||||
SizedBox(width: 20.w),
|
||||
Expanded(
|
||||
child: Text(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user