84 lines
2.8 KiB
Dart
84 lines
2.8 KiB
Dart
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/widgets.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
import 'package:get/get.dart';
|
|
import 'package:starwork_flutter/common/constant/app_colors.dart';
|
|
import 'package:starwork_flutter/common/widgets/custom_cell_list_widget.dart';
|
|
import 'package:starwork_flutter/common/widgets/custom_cell_widget.dart';
|
|
import 'package:starwork_flutter/common/widgets/custome_app_bar_wdiget.dart';
|
|
import 'package:starwork_flutter/extension/function_extension.dart';
|
|
import 'face_audit_controller.dart';
|
|
|
|
class FaceAuditView extends GetView<FaceAuditController> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: CustomAppBarWidget(
|
|
title: '人脸审核'.tr,
|
|
backgroundColor: AppColors.scaffoldBackgroundColor,
|
|
),
|
|
backgroundColor: AppColors.scaffoldBackgroundColor,
|
|
body: Container(
|
|
padding: EdgeInsets.symmetric(
|
|
horizontal: 10.w,
|
|
vertical: 10.h,
|
|
),
|
|
child: Column(
|
|
children: [
|
|
CustomCellListWidget(
|
|
children: [
|
|
CustomCellWidget(
|
|
leftText: '启用审核'.tr,
|
|
leftSubText: '若关闭审核,自助录入的人脸信息将自动生效'.tr,
|
|
rightWidget: CupertinoSwitch(
|
|
value: false,
|
|
onChanged: (value) {
|
|
controller.showFunctionNotOpen();
|
|
},
|
|
),
|
|
)
|
|
],
|
|
),
|
|
Expanded(
|
|
child: Center(
|
|
child: Text(
|
|
'暂无待审核人脸'.tr,
|
|
style: TextStyle(
|
|
fontSize: 16.sp,
|
|
color: Colors.grey,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
SizedBox(
|
|
height: 10.h,
|
|
),
|
|
SizedBox(
|
|
width: double.infinity,
|
|
child: ElevatedButton(
|
|
onPressed: () {
|
|
controller.showFunctionNotOpen();
|
|
}.debounce(),
|
|
style: ElevatedButton.styleFrom(
|
|
backgroundColor: Colors.blue,
|
|
padding: EdgeInsets.symmetric(vertical: 10.h),
|
|
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8.r)),
|
|
),
|
|
child: Text(
|
|
'批量通过'.tr,
|
|
style: TextStyle(
|
|
fontSize: 16.sp,
|
|
color: Colors.white,
|
|
fontWeight: FontWeight.w500,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|