2,更新考勤模块UI 3,更新电子钥匙模块UI 4,更新密码模块UI 5,更新卡、指纹、遥控模块UI 6,更新授权管理员模块UI 7,更新锁设置模块UI 9,新增拥有的锁界面布局
106 lines
3.7 KiB
Dart
106 lines
3.7 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
import 'package:get/get.dart';
|
|
import 'package:star_lock/app_settings/app_colors.dart';
|
|
|
|
import '../../../../appRouters.dart';
|
|
import '../../../../tools/commonItem.dart';
|
|
import '../../../../tools/showTFView.dart';
|
|
import '../../../../tools/submitBtn.dart';
|
|
import '../../../../tools/titleAppBar.dart';
|
|
import '../../../../translations/trans_lib.dart';
|
|
|
|
class CheckingInSetPage extends StatefulWidget {
|
|
const CheckingInSetPage({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
State<CheckingInSetPage> createState() => _CheckingInSetPageState();
|
|
}
|
|
|
|
class _CheckingInSetPageState extends State<CheckingInSetPage> {
|
|
final TextEditingController _changeNameController = TextEditingController();
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
backgroundColor: AppColors.mainBackgroundColor,
|
|
appBar: TitleAppBar(
|
|
barTitle:
|
|
"${TranslationLoader.lanKeys!.checkingIn!.tr}${TranslationLoader.lanKeys!.set!.tr}",
|
|
haveBack: true,
|
|
backgroundColor: AppColors.mainColor),
|
|
body: Column(
|
|
children: [
|
|
CommonItem(
|
|
leftTitel:
|
|
"${TranslationLoader.lanKeys!.company!.tr}${TranslationLoader.lanKeys!.name!.tr}",
|
|
rightTitle: "深圳市志超科技",
|
|
isHaveLine: true,
|
|
isHaveDirection: true,
|
|
action: () {
|
|
showCupertinoAlertDialog(context);
|
|
}),
|
|
CommonItem(
|
|
leftTitel: TranslationLoader.lanKeys!.staff!.tr,
|
|
rightTitle: "0",
|
|
isHaveLine: true,
|
|
isHaveDirection: true,
|
|
action: () {
|
|
Navigator.pushNamed(context, Routers.checkingInStaffManagePage);
|
|
}),
|
|
CommonItem(
|
|
leftTitel:
|
|
"${TranslationLoader.lanKeys!.work!.tr}${TranslationLoader.lanKeys!.time!.tr}",
|
|
rightTitle: "9:00 - 18:00",
|
|
isHaveLine: true,
|
|
isHaveDirection: true,
|
|
action: () {
|
|
Navigator.pushNamed(context, Routers.checkingInSetWorkTimePage);
|
|
}),
|
|
CommonItem(
|
|
leftTitel:
|
|
"${TranslationLoader.lanKeys!.workday!.tr}${TranslationLoader.lanKeys!.set!.tr}",
|
|
rightTitle: "1,2,3,4,5",
|
|
isHaveLine: true,
|
|
isHaveDirection: true,
|
|
action: () {
|
|
Navigator.pushNamed(context, Routers.checkingInSetWorkdaySet);
|
|
}),
|
|
CommonItem(
|
|
leftTitel: TranslationLoader.lanKeys!.holidays!.tr,
|
|
rightTitle: "",
|
|
isHaveLine: false,
|
|
isHaveDirection: true,
|
|
action: () {
|
|
Navigator.pushNamed(context, Routers.checkingInSetHolidaysPage);
|
|
}),
|
|
SizedBox(
|
|
height: 30.h,
|
|
),
|
|
SubmitBtn(
|
|
btnName:
|
|
"${TranslationLoader.lanKeys!.delete!.tr}${TranslationLoader.lanKeys!.company!.tr}",
|
|
borderRadius: 20.w,
|
|
fontSize: 32.sp,
|
|
isDelete: true,
|
|
margin: EdgeInsets.only(left: 30.w, right: 30.w, top: 20.w),
|
|
padding: EdgeInsets.only(top: 20.w, bottom: 20.w),
|
|
onClick: () {}),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
|
|
void showCupertinoAlertDialog(BuildContext context) {
|
|
showDialog(
|
|
context: context,
|
|
builder: (BuildContext context) {
|
|
return ShowTFView(
|
|
title:
|
|
"${TranslationLoader.lanKeys!.amend!.tr}${TranslationLoader.lanKeys!.name!.tr}",
|
|
tipTitle: "",
|
|
controller: _changeNameController);
|
|
});
|
|
}
|
|
}
|