添加授权管理员页面UI更新

This commit is contained in:
Daisy 2023-07-28 15:56:56 +08:00
parent ad0d4ba38e
commit 2127a001ce
2 changed files with 25 additions and 11 deletions

View File

@ -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<VolumeAuthorizationLockManagePage> createState() => _VolumeAuthorizationLockManagePageState();
State<VolumeAuthorizationLockManagePage> createState() =>
_VolumeAuthorizationLockManagePageState();
}
class _VolumeAuthorizationLockManagePageState extends State<VolumeAuthorizationLockManagePage> {
var index=0;
class _VolumeAuthorizationLockManagePageState
extends State<VolumeAuthorizationLockManagePage> {
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,
),
],
),
);

View File

@ -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,