From 2127a001cecae20fc94bc6f38b716fa82dbb2d25 Mon Sep 17 00:00:00 2001 From: Daisy <> Date: Fri, 28 Jul 2023 15:56:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8E=88=E6=9D=83=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=91=98=E9=A1=B5=E9=9D=A2UI=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../volumeAuthorizationLockManage_page.dart | 20 +++++++++++++------ .../volumeAuthorizationLock_page.dart | 16 ++++++++++----- 2 files changed, 25 insertions(+), 11 deletions(-) diff --git a/star_lock/lib/main/lockDetail/authorizedAdmin/volumeAuthorizationLock/volumeAuthorizationLockManage/volumeAuthorizationLockManage_page.dart b/star_lock/lib/main/lockDetail/authorizedAdmin/volumeAuthorizationLock/volumeAuthorizationLockManage/volumeAuthorizationLockManage_page.dart index 45dea31a..400d9ba5 100644 --- a/star_lock/lib/main/lockDetail/authorizedAdmin/volumeAuthorizationLock/volumeAuthorizationLockManage/volumeAuthorizationLockManage_page.dart +++ b/star_lock/lib/main/lockDetail/authorizedAdmin/volumeAuthorizationLock/volumeAuthorizationLockManage/volumeAuthorizationLockManage_page.dart @@ -7,23 +7,31 @@ import '../../../../../tools/titleAppBar.dart'; import '../../../../../translations/trans_lib.dart'; class VolumeAuthorizationLockManagePage extends StatefulWidget { - const VolumeAuthorizationLockManagePage({Key? key}):super(key:key); + const VolumeAuthorizationLockManagePage({Key? key}) : super(key: key); @override - State createState() => _VolumeAuthorizationLockManagePageState(); + State createState() => + _VolumeAuthorizationLockManagePageState(); } -class _VolumeAuthorizationLockManagePageState extends State { - var index=0; +class _VolumeAuthorizationLockManagePageState + extends State { + var index = 0; @override Widget build(BuildContext context) { return Scaffold( backgroundColor: AppColors.mainBackgroundColor, - appBar: TitleAppBar(barTitle: "${TranslationLoader.lanKeys!.add!.tr} ${TranslationLoader.lanKeys!.authorizedAdmin!.tr}", haveBack:true, backgroundColor: AppColors.mainColor), + appBar: TitleAppBar( + barTitle: + "${TranslationLoader.lanKeys!.add!.tr}${TranslationLoader.lanKeys!.authorizedAdmin!.tr}", + haveBack: true, + backgroundColor: AppColors.mainColor), body: Column( children: [ - VolumeAuthorizationLockManageTabbar(initialIndex: index,), + VolumeAuthorizationLockManageTabbar( + initialIndex: index, + ), ], ), ); diff --git a/star_lock/lib/main/lockDetail/authorizedAdmin/volumeAuthorizationLock/volumeAuthorizationLock_page.dart b/star_lock/lib/main/lockDetail/authorizedAdmin/volumeAuthorizationLock/volumeAuthorizationLock_page.dart index 8fe513f9..39dc559e 100644 --- a/star_lock/lib/main/lockDetail/authorizedAdmin/volumeAuthorizationLock/volumeAuthorizationLock_page.dart +++ b/star_lock/lib/main/lockDetail/authorizedAdmin/volumeAuthorizationLock/volumeAuthorizationLock_page.dart @@ -45,6 +45,9 @@ class _VolumeAuthorizationLockPageState children: [ keyInfoWidget(), remoteUnlockingWidget(), + SizedBox( + height: 30.h, + ), keyBottomWidget() ], ); @@ -56,10 +59,12 @@ class _VolumeAuthorizationLockPageState keyInfoWidget(), keyTimeWidget(), remoteUnlockingWidget(), + SizedBox( + height: 30.h, + ), keyBottomWidget() ], ); - break; } } @@ -143,7 +148,7 @@ class _VolumeAuthorizationLockPageState Widget getTFWidget(bool isHaveBtn, String tfStr) { return Container( height: 50.h, - width: 500.w, + width: 300.w, child: Row( children: [ Expanded( @@ -157,6 +162,7 @@ class _VolumeAuthorizationLockPageState //输入里面输入文字内边距设置 contentPadding: const EdgeInsets.only(top: 12.0, bottom: 8.0), hintText: tfStr, + hintStyle: TextStyle(fontSize: 22.sp), //不需要输入框下划线 border: InputBorder.none, ), @@ -167,12 +173,12 @@ class _VolumeAuthorizationLockPageState ), isHaveBtn ? Container( - width: 50.w, - height: 50.w, + width: 30.w, + height: 30.w, decoration: const BoxDecoration( color: Colors.white, image: DecorationImage( - image: AssetImage('images/icon_lock.png'), + image: AssetImage('images/icon_addressBook.png'), fit: BoxFit.fill), ), alignment: Alignment.center,