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