69 lines
3.1 KiB
Dart
69 lines
3.1 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> {
|
|
TextEditingController _changeNameController;
|
|
|
|
@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.lockEscalationPage);
|
|
}),
|
|
SizedBox(height: 30.h,),
|
|
SubmitBtn(btnName: "${TranslationLoader.lanKeys.delete.tr} ${TranslationLoader.lanKeys.company.tr}",
|
|
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) {
|
|
return ShowTFView(title:"${TranslationLoader.lanKeys.amend.tr} ${TranslationLoader.lanKeys.name.tr}", tipTitle:"", controller: _changeNameController);
|
|
});
|
|
}
|
|
}
|