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,
),
Row(
children: [
children: <Widget>[
Visibility(
visible: keyInfo.passageMode == 1,
child: Container(
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(
borderRadius: BorderRadius.circular(5.w),
color: AppColors.openPassageModeColor,
@ -328,16 +328,17 @@ class _LockListXHJPageState extends State<LockListXHJPage> with RouteAware {
fontSize: 18.sp,
color: AppColors.appBarIconColor)),
)),
SizedBox(
width: 5.w,
),
if (keyInfo.passageMode == 1)
SizedBox(
width: 5.w,
),
Visibility(
visible: keyInfo.lockSetting!.remoteUnlock == 1,
child: Row(
children: <Widget>[
Container(
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(
borderRadius: BorderRadius.circular(5.w),
color: AppColors.mainColor,
@ -394,7 +395,7 @@ class _LockListXHJPageState extends State<LockListXHJPage> with RouteAware {
fontSize: 16.sp, color: AppColors.darkGrayTextColor),
),
Row(
children: [
children: <Widget>[
Text(
Characters(useKeyTypeListStr[1]).join('\u{200B}'),
style: TextStyle(