92 lines
3.2 KiB
Dart
Executable File
92 lines
3.2 KiB
Dart
Executable File
|
|
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/submitBtn.dart';
|
|
import '../../../../../tools/titleAppBar.dart';
|
|
import '../../../../../translations/trans_lib.dart';
|
|
import 'addFingerprintTip_logic.dart';
|
|
|
|
class AddFingerprintTipPage extends StatefulWidget {
|
|
const AddFingerprintTipPage({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
State<AddFingerprintTipPage> createState() => _AddFingerprintTipPageState();
|
|
}
|
|
|
|
class _AddFingerprintTipPageState extends State<AddFingerprintTipPage> {
|
|
final logic = Get.put(AddFingerprintTipLogic());
|
|
final state = Get.find<AddFingerprintTipLogic>().state;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
backgroundColor: Colors.white,
|
|
appBar: TitleAppBar(
|
|
barTitle: TranslationLoader.lanKeys!.addLock!.tr,
|
|
haveBack: true,
|
|
backgroundColor: AppColors.mainColor),
|
|
body: ListView(
|
|
// mainAxisAlignment: MainAxisAlignment.center,
|
|
// crossAxisAlignment: CrossAxisAlignment.center,
|
|
children: [
|
|
SizedBox(
|
|
height: 50.h,
|
|
),
|
|
Container(
|
|
padding: EdgeInsets.only(left: 20.w, right: 20.w),
|
|
child: Row(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Expanded(
|
|
child: Text(
|
|
"添加过程中,请根据提示,在指纹采集器上进行多次的抬起按压".tr,
|
|
// TranslationLoader.lanKeys!.lightTouchScreenTip!.tr,
|
|
textAlign: TextAlign.center,
|
|
maxLines:null,
|
|
style: TextStyle(fontSize: 24.sp, fontWeight: FontWeight.w600),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
SizedBox(
|
|
height: 60.h,
|
|
),
|
|
Image.asset(
|
|
'images/main/icon_addFingerprintTip.png',
|
|
width: 270.w,
|
|
height: 457.h,
|
|
),
|
|
SizedBox(
|
|
height: 120.h,
|
|
),
|
|
Container(
|
|
padding: EdgeInsets.only(left: 20.w, right: 20.w),
|
|
child: SubmitBtn(
|
|
btnName: "开始添加".tr,//TranslationLoader.lanKeys!.next!.tr,
|
|
borderRadius: 20.w,
|
|
onClick: () {
|
|
Get.toNamed(Routers.addFingerprintPage, arguments: {
|
|
"lockId": state.lockId.value,
|
|
"endDate": state.endDate.value,
|
|
"addType": state.addType.value,
|
|
"fingerprintName": state.fingerprintName.value,
|
|
"fingerprintNumber": state.fingerprintNumber.value,
|
|
"fingerprintType": state.fingerprintType.value,
|
|
"isCoerced": state.isCoerced.value,
|
|
"startDate": state.startDate.value,
|
|
"weekDay": state.weekDay.value,
|
|
"fromType": state.fromType.value,
|
|
});
|
|
}),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|