69 lines
3.1 KiB
Dart
Raw Normal View History

2023-07-11 18:37:25 +08:00
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 {
2023-07-15 15:11:28 +08:00
const CheckingInSetPage({Key? key}) : super(key: key);
2023-07-11 18:37:25 +08:00
@override
State<CheckingInSetPage> createState() => _CheckingInSetPageState();
}
class _CheckingInSetPageState extends State<CheckingInSetPage> {
2023-07-18 18:10:57 +08:00
final TextEditingController _changeNameController = TextEditingController();
2023-07-11 18:37:25 +08:00
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: AppColors.mainBackgroundColor,
2023-07-15 15:11:28 +08:00
appBar: TitleAppBar(barTitle: "${TranslationLoader.lanKeys!.checkingIn!.tr} ${TranslationLoader.lanKeys!.set!.tr}", haveBack:true, backgroundColor: AppColors.mainColor),
2023-07-11 18:37:25 +08:00
body: Column(
children: [
2023-07-15 15:11:28 +08:00
CommonItem(leftTitel:"${TranslationLoader.lanKeys!.company!.tr} ${TranslationLoader.lanKeys!.name!.tr}", rightTitle:"深圳市志超科技", isHaveLine: true, isHaveDirection: true, action: (){
2023-07-11 18:37:25 +08:00
showCupertinoAlertDialog(context);
}),
2023-07-15 15:11:28 +08:00
CommonItem(leftTitel:TranslationLoader.lanKeys!.staff!.tr, rightTitle:"0", isHaveLine: true, isHaveDirection: true, action: (){
2023-07-11 18:37:25 +08:00
Navigator.pushNamed(context, Routers.checkingInStaffManagePage);
}),
2023-07-15 15:11:28 +08:00
CommonItem(leftTitel:"${TranslationLoader.lanKeys!.work!.tr} ${TranslationLoader.lanKeys!.time!.tr}", rightTitle:"9:00 - 18:00", isHaveLine: true, isHaveDirection: true, action: (){
2023-07-11 18:37:25 +08:00
Navigator.pushNamed(context, Routers.checkingInSetWorkTimePage);
}),
2023-07-15 15:11:28 +08:00
CommonItem(leftTitel:"${TranslationLoader.lanKeys!.workday!.tr} ${TranslationLoader.lanKeys!.set!.tr}", rightTitle:"1,2,3,4,5", isHaveLine: true, isHaveDirection: true, action: (){
2023-07-11 18:37:25 +08:00
Navigator.pushNamed(context, Routers.checkingInSetWorkdaySet);
}),
2023-07-15 15:11:28 +08:00
CommonItem(leftTitel:TranslationLoader.lanKeys!.holidays!.tr, rightTitle:"", isHaveLine: false, isHaveDirection: true, action: (){
2023-07-13 14:13:44 +08:00
Navigator.pushNamed(context, Routers.checkingInSetHolidaysPage);
2023-07-11 18:37:25 +08:00
}),
SizedBox(height: 30.h,),
2023-07-15 15:11:28 +08:00
SubmitBtn(btnName: "${TranslationLoader.lanKeys!.delete!.tr} ${TranslationLoader.lanKeys!.company!.tr}",
2023-07-11 18:37:25 +08:00
borderRadius: 20.w,
fontSize: 32.sp,
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) {
2023-07-15 15:11:28 +08:00
return ShowTFView(title:"${TranslationLoader.lanKeys!.amend!.tr} ${TranslationLoader.lanKeys!.name!.tr}", tipTitle:"", controller: _changeNameController);
2023-07-11 18:37:25 +08:00
});
}
}