fix:修复鑫泓佳列表页设备名字显示不全的问题
This commit is contained in:
parent
3225f8fb30
commit
24b1b0c3e5
@ -184,7 +184,7 @@ class _LockListXHJPageState extends State<LockListXHJPage> with RouteAware {
|
|||||||
borderRadius: BorderRadius.circular(20.w),
|
borderRadius: BorderRadius.circular(20.w),
|
||||||
),
|
),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 30.w, vertical: 10.h),
|
padding: EdgeInsets.symmetric(horizontal: 15.w, vertical: 5.h),
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
@ -193,25 +193,28 @@ class _LockListXHJPageState extends State<LockListXHJPage> with RouteAware {
|
|||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Image.asset(
|
Image.asset(
|
||||||
'images/icon_lock_circle.png',
|
'images/icon_lock_circle.png',
|
||||||
width: 32.r,
|
width: 48.r,
|
||||||
height: 32.r,
|
height: 48.r,
|
||||||
color: AppColors.mainColor,
|
color: AppColors.mainColor,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: 15.h,
|
height: 10.h,
|
||||||
|
),
|
||||||
|
FittedBox(
|
||||||
|
fit: BoxFit.scaleDown,
|
||||||
|
child: Text(keyInfo.lockAlias!,
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 24.sp,
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
color: keyInfo.passageMode == 1
|
||||||
|
? AppColors.openPassageModeColor
|
||||||
|
: AppColors.darkGrayTextColor,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
),
|
||||||
|
maxLines: 1),
|
||||||
),
|
),
|
||||||
Text(keyInfo.lockAlias!,
|
|
||||||
style: TextStyle(
|
|
||||||
fontSize: 32.sp,
|
|
||||||
fontWeight: FontWeight.w500,
|
|
||||||
color: keyInfo.passageMode == 1
|
|
||||||
? AppColors.openPassageModeColor
|
|
||||||
: AppColors.darkGrayTextColor,
|
|
||||||
overflow: TextOverflow.ellipsis,
|
|
||||||
),
|
|
||||||
maxLines: 1),
|
|
||||||
Visibility(
|
Visibility(
|
||||||
visible: keyInfo.passageMode == 1,
|
visible: keyInfo.passageMode == 1,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
@ -287,7 +290,7 @@ class _LockListXHJPageState extends State<LockListXHJPage> with RouteAware {
|
|||||||
? '超级管理员'.tr
|
? '超级管理员'.tr
|
||||||
: (keyInfo.keyRight == 1 ? '授权管理员'.tr : '普通用户'.tr),
|
: (keyInfo.keyRight == 1 ? '授权管理员'.tr : '普通用户'.tr),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 18.sp, color: AppColors.darkGrayTextColor),
|
fontSize: 16.sp, color: AppColors.darkGrayTextColor),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Image.asset(
|
Image.asset(
|
||||||
@ -299,7 +302,7 @@ class _LockListXHJPageState extends State<LockListXHJPage> with RouteAware {
|
|||||||
Text(
|
Text(
|
||||||
'${keyInfo.electricQuantity!}%',
|
'${keyInfo.electricQuantity!}%',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 18.sp, color: AppColors.darkGrayTextColor),
|
fontSize: 16.sp, color: AppColors.darkGrayTextColor),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@ -308,7 +311,7 @@ class _LockListXHJPageState extends State<LockListXHJPage> with RouteAware {
|
|||||||
keyInfo.startDate, keyInfo.endDate, keyInfo.keyType))
|
keyInfo.startDate, keyInfo.endDate, keyInfo.keyType))
|
||||||
.join('\u{200B}'),
|
.join('\u{200B}'),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 18.sp, color: AppColors.darkGrayTextColor),
|
fontSize: 16.sp, color: AppColors.darkGrayTextColor),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user