首页UI样式优化
This commit is contained in:
parent
677ab6bce9
commit
ea7287583d
@ -102,7 +102,9 @@ class _LockDetailPageState extends State<LockDetailPage>
|
|||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
Text("钥匙将在2天后失效", style: TextStyle(color: const Color(0xffCBA74B),fontSize: 24.sp))
|
Text("钥匙将在2天后失效",
|
||||||
|
style: TextStyle(
|
||||||
|
color: const Color(0xffCBA74B), fontSize: 24.sp))
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@ -132,7 +134,7 @@ class _LockDetailPageState extends State<LockDetailPage>
|
|||||||
],
|
],
|
||||||
// ),
|
// ),
|
||||||
),
|
),
|
||||||
))
|
)),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@ -180,13 +182,18 @@ class _LockDetailPageState extends State<LockDetailPage>
|
|||||||
GestureDetector(
|
GestureDetector(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
// logic.getStarLockStatus();
|
// logic.getStarLockStatus();
|
||||||
showDeletAlertDialog(context, DateTool().dateToYMDHNSString(state.keyInfos.value.electricQuantityDate!.toString()));
|
showDeletAlertDialog(
|
||||||
|
context,
|
||||||
|
DateTool().dateToYMDHNSString(state
|
||||||
|
.keyInfos.value.electricQuantityDate!
|
||||||
|
.toString()));
|
||||||
},
|
},
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.end,
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
children: [
|
children: [
|
||||||
Image.asset(
|
Image.asset(
|
||||||
showElectricIcon(state.electricQuantity.value),
|
showElectricIcon(
|
||||||
|
state.electricQuantity.value),
|
||||||
width: 30.w,
|
width: 30.w,
|
||||||
height: 24.w),
|
height: 24.w),
|
||||||
SizedBox(width: 2.w),
|
SizedBox(width: 2.w),
|
||||||
@ -455,7 +462,7 @@ class _LockDetailPageState extends State<LockDetailPage>
|
|||||||
child: GridView.count(
|
child: GridView.count(
|
||||||
crossAxisCount: 4,
|
crossAxisCount: 4,
|
||||||
// childAspectRatio: 3,
|
// childAspectRatio: 3,
|
||||||
crossAxisSpacing: 20.w,
|
crossAxisSpacing: 25.h,
|
||||||
mainAxisSpacing: 0.h,
|
mainAxisSpacing: 0.h,
|
||||||
physics: const NeverScrollableScrollPhysics(),
|
physics: const NeverScrollableScrollPhysics(),
|
||||||
children: getBottomWidget()),
|
children: getBottomWidget()),
|
||||||
@ -694,7 +701,9 @@ class _LockDetailPageState extends State<LockDetailPage>
|
|||||||
SizedBox(height: 10.w),
|
SizedBox(height: 10.w),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Text(name,
|
child: Text(name,
|
||||||
style: TextStyle(fontSize: 20.sp, color: isForbidden
|
style: TextStyle(
|
||||||
|
fontSize: 20.sp,
|
||||||
|
color: isForbidden
|
||||||
? AppColors.lockDetailBottomBtnUneable
|
? AppColors.lockDetailBottomBtnUneable
|
||||||
: AppColors.blackColor),
|
: AppColors.blackColor),
|
||||||
textAlign: TextAlign.center))
|
textAlign: TextAlign.center))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user