添加授权管理员页面UI更新
This commit is contained in:
parent
ad0d4ba38e
commit
2127a001ce
@ -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,
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user