2,更新考勤模块UI 3,更新电子钥匙模块UI 4,更新密码模块UI 5,更新卡、指纹、遥控模块UI 6,更新授权管理员模块UI 7,更新锁设置模块UI 9,新增拥有的锁界面布局
211 lines
6.8 KiB
Dart
211 lines
6.8 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
import 'package:get/get.dart';
|
|
|
|
import '../../../appRouters.dart';
|
|
import '../../../app_settings/app_colors.dart';
|
|
import '../../../tools/commonItem.dart';
|
|
import '../../../tools/titleAppBar.dart';
|
|
import '../../../translations/trans_lib.dart';
|
|
|
|
class ValueAddedServicesRealNamePage extends StatefulWidget {
|
|
const ValueAddedServicesRealNamePage({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
State<ValueAddedServicesRealNamePage> createState() =>
|
|
_ValueAddedServicesRealNamePageState();
|
|
}
|
|
|
|
class _ValueAddedServicesRealNamePageState
|
|
extends State<ValueAddedServicesRealNamePage> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
backgroundColor: AppColors.mainBackgroundColor,
|
|
appBar: TitleAppBar(
|
|
barTitle: TranslationLoader.lanKeys!.realNameAuthentication!.tr,
|
|
haveBack: true,
|
|
backgroundColor: AppColors.mainColor),
|
|
body: Column(
|
|
children: [
|
|
Container(
|
|
width: 1.sw,
|
|
// color: Colors.grey.shade300,
|
|
padding: EdgeInsets.only(
|
|
left: 25.h, right: 25.h, top: 25.h, bottom: 10.h),
|
|
child: Text(
|
|
TranslationLoader.lanKeys!.buyRealNameTip!.tr,
|
|
style: TextStyle(
|
|
color: AppColors.darkGrayTextColor, fontSize: 20.sp),
|
|
)),
|
|
middleWidget(),
|
|
bottomWidget()
|
|
],
|
|
),
|
|
);
|
|
}
|
|
|
|
Widget middleWidget() {
|
|
return Container(
|
|
width: 1.sw,
|
|
// height: 100,
|
|
// color: Colors.grey.shade300,
|
|
margin: EdgeInsets.all(10.h),
|
|
decoration: const BoxDecoration(
|
|
image: DecorationImage(
|
|
image: AssetImage(
|
|
"images/mine/icon_mine_valueAddedServices_noteTop.png"),
|
|
fit: BoxFit.cover)),
|
|
child: Column(children: [
|
|
// SizedBox(height:10),
|
|
Container(
|
|
margin:
|
|
const EdgeInsets.only(top: 15, bottom: 15, left: 30, right: 30),
|
|
child: Row(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Text(
|
|
"${TranslationLoader.lanKeys!.currentRemainingQuantity!.tr}:0",
|
|
style: TextStyle(fontSize: 24.sp),
|
|
)
|
|
],
|
|
),
|
|
),
|
|
// SizedBox(height:20.h),
|
|
Container(
|
|
margin: const EdgeInsets.only(top: 10, bottom: 10),
|
|
// color: Colors.red,
|
|
// height: 100.h,
|
|
child: Row(
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
children: [
|
|
GestureDetector(
|
|
onTap: () {},
|
|
child: Container(
|
|
width: 200.w,
|
|
// height: 70.h,
|
|
// color: Colors.red,
|
|
child: Center(
|
|
child: Text(TranslationLoader.lanKeys!.record!.tr,
|
|
style: TextStyle(
|
|
color: Colors.black, fontSize: 24.sp)))),
|
|
),
|
|
GestureDetector(
|
|
onTap: () {
|
|
Navigator.pushNamed(
|
|
context, Routers.valueAddedServicesBuyPage,
|
|
arguments: 3);
|
|
},
|
|
child: Container(
|
|
width: 200.w,
|
|
// height: 70.h,
|
|
// color: Colors.red,
|
|
child: Center(
|
|
child: Text(TranslationLoader.lanKeys!.buy!.tr,
|
|
style: TextStyle(
|
|
color: AppColors.mainColor,
|
|
fontSize: 24.sp)))),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
]));
|
|
}
|
|
|
|
Widget bottomWidget() {
|
|
return Container(
|
|
width: 1.sw,
|
|
color: Colors.white,
|
|
margin: EdgeInsets.all(20.h),
|
|
child: Column(
|
|
children: [
|
|
Column(
|
|
children: [
|
|
Container(
|
|
padding: EdgeInsets.only(top: 20.h, bottom: 20.h, left: 30.w),
|
|
child: Text(
|
|
TranslationLoader
|
|
.lanKeys!.buyRealNameSeletYouWantBuyTip!.tr,
|
|
style:
|
|
TextStyle(fontSize: 24.sp, fontWeight: FontWeight.w600),
|
|
)),
|
|
],
|
|
),
|
|
CommonItem(
|
|
leftTitel: TranslationLoader.lanKeys!.forTheFirstTime!.tr,
|
|
rightTitle: "",
|
|
allHeight: 60.h,
|
|
isHaveLine: true,
|
|
isHaveRightWidget: true,
|
|
rightWidget: GestureDetector(
|
|
onTap: () {},
|
|
child: Row(
|
|
children: [
|
|
Image.asset(
|
|
'images/icon_round_unSelet.png',
|
|
width: 30.w,
|
|
height: 30.w,
|
|
),
|
|
],
|
|
),
|
|
)),
|
|
CommonItem(
|
|
leftTitel: TranslationLoader.lanKeys!.onceDay!.tr,
|
|
rightTitle: "",
|
|
allHeight: 60.h,
|
|
isHaveLine: true,
|
|
isHaveRightWidget: true,
|
|
rightWidget: GestureDetector(
|
|
onTap: () {},
|
|
child: Row(
|
|
children: [
|
|
Image.asset(
|
|
'images/icon_round_unSelet.png',
|
|
width: 30.w,
|
|
height: 30.w,
|
|
),
|
|
],
|
|
),
|
|
)),
|
|
CommonItem(
|
|
leftTitel: TranslationLoader.lanKeys!.weekOnce!.tr,
|
|
rightTitle: "",
|
|
allHeight: 60.h,
|
|
isHaveLine: true,
|
|
isHaveRightWidget: true,
|
|
rightWidget: GestureDetector(
|
|
onTap: () {},
|
|
child: Row(
|
|
children: [
|
|
Image.asset(
|
|
'images/icon_round_unSelet.png',
|
|
width: 30.w,
|
|
height: 30.w,
|
|
),
|
|
],
|
|
),
|
|
)),
|
|
CommonItem(
|
|
leftTitel: TranslationLoader.lanKeys!.monthOnce!.tr,
|
|
rightTitle: "",
|
|
allHeight: 60.h,
|
|
isHaveLine: false,
|
|
isHaveRightWidget: true,
|
|
rightWidget: GestureDetector(
|
|
onTap: () {},
|
|
child: Row(
|
|
children: [
|
|
Image.asset(
|
|
'images/icon_round_unSelet.png',
|
|
width: 30.w,
|
|
height: 30.w,
|
|
),
|
|
],
|
|
),
|
|
)),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|