faet:代码补充
This commit is contained in:
parent
04d2dde5eb
commit
11c90ca414
@ -38,27 +38,28 @@ 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);
|
||||||
if (isDemoMode == false) {
|
if (isDemoMode == false) {
|
||||||
Get.toNamed(Routers.checkingInSetPage,
|
Get.toNamed(Routers.checkingInSetPage,
|
||||||
arguments: <String, LockListInfoItemEntity>{
|
arguments: <String, LockListInfoItemEntity>{
|
||||||
'getKeyInfosData': state.getKeyInfosData.value,
|
'getKeyInfosData': state.getKeyInfosData.value,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// Get.toNamed(Routers.selectLockTypePage);
|
// Get.toNamed(Routers.selectLockTypePage);
|
||||||
logic.showToast('演示模式');
|
logic.showToast('演示模式');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Image.asset(
|
child: Image.asset(
|
||||||
'images/main/icon_lockDetail_checkIn_set.png',
|
'images/main/icon_lockDetail_checkIn_set.png',
|
||||||
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,
|
||||||
),
|
),
|
||||||
Image.asset(
|
if (headUrl == null || headUrl == '')
|
||||||
getTypeIcon(type ?? 0),
|
Image.asset(
|
||||||
width: 60.w,
|
getTypeIcon(type ?? 0),
|
||||||
height: 60.w,
|
width: 60.w,
|
||||||
),
|
height: 60.w,
|
||||||
// Container(
|
)
|
||||||
// width: 60.h,
|
else
|
||||||
// height: 60.h,
|
ClipRRect(
|
||||||
// decoration: BoxDecoration(
|
borderRadius: BorderRadius.circular(100.w),
|
||||||
// color: AppColors.mainColor,
|
child: Image.network(
|
||||||
// border: Border.all(width: 1, color: AppColors.mainColor),
|
headUrl,
|
||||||
// borderRadius: BorderRadius.circular(30.h),
|
width: 60.w,
|
||||||
// ),
|
height: 60.w,
|
||||||
// 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(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user