fix:修复设备列表显示异常的问题,补充代码

This commit is contained in:
anfe 2024-06-04 16:50:08 +08:00
parent 0593da7598
commit 9174935452

View File

@ -313,12 +313,12 @@ class _LockListXHJPageState extends State<LockListXHJPage> with RouteAware {
maxLines: 2, maxLines: 2,
), ),
Row( Row(
children: [ children: <Widget>[
Visibility( Visibility(
visible: keyInfo.passageMode == 1, visible: keyInfo.passageMode == 1,
child: Container( child: Container(
padding: padding:
EdgeInsets.only(top: 5.h, right: 5.w, left: 5.w), EdgeInsets.only(top: 2.h, right: 3.w, left: 3.w,bottom: 1.h),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(5.w), borderRadius: BorderRadius.circular(5.w),
color: AppColors.openPassageModeColor, color: AppColors.openPassageModeColor,
@ -328,16 +328,17 @@ class _LockListXHJPageState extends State<LockListXHJPage> with RouteAware {
fontSize: 18.sp, fontSize: 18.sp,
color: AppColors.appBarIconColor)), color: AppColors.appBarIconColor)),
)), )),
SizedBox( if (keyInfo.passageMode == 1)
width: 5.w, SizedBox(
), width: 5.w,
),
Visibility( Visibility(
visible: keyInfo.lockSetting!.remoteUnlock == 1, visible: keyInfo.lockSetting!.remoteUnlock == 1,
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
Container( Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: 5.h, right: 5.w, left: 5.w), top: 2.h, right: 3.w, left: 3.w,bottom: 1.h),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(5.w), borderRadius: BorderRadius.circular(5.w),
color: AppColors.mainColor, color: AppColors.mainColor,
@ -394,7 +395,7 @@ class _LockListXHJPageState extends State<LockListXHJPage> with RouteAware {
fontSize: 16.sp, color: AppColors.darkGrayTextColor), fontSize: 16.sp, color: AppColors.darkGrayTextColor),
), ),
Row( Row(
children: [ children: <Widget>[
Text( Text(
Characters(useKeyTypeListStr[1]).join('\u{200B}'), Characters(useKeyTypeListStr[1]).join('\u{200B}'),
style: TextStyle( style: TextStyle(