diff --git a/lib/main/lockMian/lockList/lockList_xhj_page.dart b/lib/main/lockMian/lockList/lockList_xhj_page.dart index 137a5ba0..37e18bef 100755 --- a/lib/main/lockMian/lockList/lockList_xhj_page.dart +++ b/lib/main/lockMian/lockList/lockList_xhj_page.dart @@ -184,7 +184,7 @@ class _LockListXHJPageState extends State with RouteAware { borderRadius: BorderRadius.circular(20.w), ), child: Padding( - padding: EdgeInsets.symmetric(horizontal: 30.w, vertical: 10.h), + padding: EdgeInsets.symmetric(horizontal: 15.w, vertical: 5.h), child: Column( crossAxisAlignment: CrossAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.center, @@ -193,25 +193,28 @@ class _LockListXHJPageState extends State with RouteAware { children: [ Image.asset( 'images/icon_lock_circle.png', - width: 32.r, - height: 32.r, + width: 48.r, + height: 48.r, color: AppColors.mainColor, ), ], ), 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( visible: keyInfo.passageMode == 1, child: Padding( @@ -287,7 +290,7 @@ class _LockListXHJPageState extends State with RouteAware { ? '超级管理员'.tr : (keyInfo.keyRight == 1 ? '授权管理员'.tr : '普通用户'.tr), style: TextStyle( - fontSize: 18.sp, color: AppColors.darkGrayTextColor), + fontSize: 16.sp, color: AppColors.darkGrayTextColor), ), ), Image.asset( @@ -299,7 +302,7 @@ class _LockListXHJPageState extends State with RouteAware { Text( '${keyInfo.electricQuantity!}%', style: TextStyle( - fontSize: 18.sp, color: AppColors.darkGrayTextColor), + fontSize: 16.sp, color: AppColors.darkGrayTextColor), ), ], ), @@ -308,7 +311,7 @@ class _LockListXHJPageState extends State with RouteAware { keyInfo.startDate, keyInfo.endDate, keyInfo.keyType)) .join('\u{200B}'), style: TextStyle( - fontSize: 18.sp, color: AppColors.darkGrayTextColor), + fontSize: 16.sp, color: AppColors.darkGrayTextColor), ) ], ),