添加授权管理员页面UI更新
This commit is contained in:
parent
ad0d4ba38e
commit
2127a001ce
@ -7,23 +7,31 @@ import '../../../../../tools/titleAppBar.dart';
|
|||||||
import '../../../../../translations/trans_lib.dart';
|
import '../../../../../translations/trans_lib.dart';
|
||||||
|
|
||||||
class VolumeAuthorizationLockManagePage extends StatefulWidget {
|
class VolumeAuthorizationLockManagePage extends StatefulWidget {
|
||||||
const VolumeAuthorizationLockManagePage({Key? key}):super(key:key);
|
const VolumeAuthorizationLockManagePage({Key? key}) : super(key: key);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<VolumeAuthorizationLockManagePage> createState() => _VolumeAuthorizationLockManagePageState();
|
State<VolumeAuthorizationLockManagePage> createState() =>
|
||||||
|
_VolumeAuthorizationLockManagePageState();
|
||||||
}
|
}
|
||||||
|
|
||||||
class _VolumeAuthorizationLockManagePageState extends State<VolumeAuthorizationLockManagePage> {
|
class _VolumeAuthorizationLockManagePageState
|
||||||
var index=0;
|
extends State<VolumeAuthorizationLockManagePage> {
|
||||||
|
var index = 0;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: AppColors.mainBackgroundColor,
|
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(
|
body: Column(
|
||||||
children: [
|
children: [
|
||||||
VolumeAuthorizationLockManageTabbar(initialIndex: index,),
|
VolumeAuthorizationLockManageTabbar(
|
||||||
|
initialIndex: index,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@ -45,6 +45,9 @@ class _VolumeAuthorizationLockPageState
|
|||||||
children: [
|
children: [
|
||||||
keyInfoWidget(),
|
keyInfoWidget(),
|
||||||
remoteUnlockingWidget(),
|
remoteUnlockingWidget(),
|
||||||
|
SizedBox(
|
||||||
|
height: 30.h,
|
||||||
|
),
|
||||||
keyBottomWidget()
|
keyBottomWidget()
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
@ -56,10 +59,12 @@ class _VolumeAuthorizationLockPageState
|
|||||||
keyInfoWidget(),
|
keyInfoWidget(),
|
||||||
keyTimeWidget(),
|
keyTimeWidget(),
|
||||||
remoteUnlockingWidget(),
|
remoteUnlockingWidget(),
|
||||||
|
SizedBox(
|
||||||
|
height: 30.h,
|
||||||
|
),
|
||||||
keyBottomWidget()
|
keyBottomWidget()
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -143,7 +148,7 @@ class _VolumeAuthorizationLockPageState
|
|||||||
Widget getTFWidget(bool isHaveBtn, String tfStr) {
|
Widget getTFWidget(bool isHaveBtn, String tfStr) {
|
||||||
return Container(
|
return Container(
|
||||||
height: 50.h,
|
height: 50.h,
|
||||||
width: 500.w,
|
width: 300.w,
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
@ -157,6 +162,7 @@ class _VolumeAuthorizationLockPageState
|
|||||||
//输入里面输入文字内边距设置
|
//输入里面输入文字内边距设置
|
||||||
contentPadding: const EdgeInsets.only(top: 12.0, bottom: 8.0),
|
contentPadding: const EdgeInsets.only(top: 12.0, bottom: 8.0),
|
||||||
hintText: tfStr,
|
hintText: tfStr,
|
||||||
|
hintStyle: TextStyle(fontSize: 22.sp),
|
||||||
//不需要输入框下划线
|
//不需要输入框下划线
|
||||||
border: InputBorder.none,
|
border: InputBorder.none,
|
||||||
),
|
),
|
||||||
@ -167,12 +173,12 @@ class _VolumeAuthorizationLockPageState
|
|||||||
),
|
),
|
||||||
isHaveBtn
|
isHaveBtn
|
||||||
? Container(
|
? Container(
|
||||||
width: 50.w,
|
width: 30.w,
|
||||||
height: 50.w,
|
height: 30.w,
|
||||||
decoration: const BoxDecoration(
|
decoration: const BoxDecoration(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
image: DecorationImage(
|
image: DecorationImage(
|
||||||
image: AssetImage('images/icon_lock.png'),
|
image: AssetImage('images/icon_addressBook.png'),
|
||||||
fit: BoxFit.fill),
|
fit: BoxFit.fill),
|
||||||
),
|
),
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user