|
|
@ -1,12 +1,3 @@
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import 'package:bot_toast/bot_toast.dart';
|
|
|
|
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
|
|
|
|
import 'package:velocity_x/velocity_x.dart';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import 'package:aku_community/base/base_style.dart';
|
|
|
|
import 'package:aku_community/base/base_style.dart';
|
|
|
|
import 'package:aku_community/extensions/widget_list_ext.dart';
|
|
|
|
import 'package:aku_community/extensions/widget_list_ext.dart';
|
|
|
|
import 'package:aku_community/models/house/lease_echo_model.dart';
|
|
|
|
import 'package:aku_community/models/house/lease_echo_model.dart';
|
|
|
@ -16,6 +7,13 @@ import 'package:aku_community/widget/bee_scaffold.dart';
|
|
|
|
import 'package:aku_community/widget/bottom_sheets/sex_bottom_sheet.dart';
|
|
|
|
import 'package:aku_community/widget/bottom_sheets/sex_bottom_sheet.dart';
|
|
|
|
import 'package:aku_community/widget/buttons/bottom_button.dart';
|
|
|
|
import 'package:aku_community/widget/buttons/bottom_button.dart';
|
|
|
|
import 'package:aku_community/widget/others/bee_input_row.dart';
|
|
|
|
import 'package:aku_community/widget/others/bee_input_row.dart';
|
|
|
|
|
|
|
|
import 'package:bot_toast/bot_toast.dart';
|
|
|
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
|
|
|
|
import 'package:velocity_x/velocity_x.dart';
|
|
|
|
|
|
|
|
|
|
|
|
class UserIdentifyPage extends StatefulWidget {
|
|
|
|
class UserIdentifyPage extends StatefulWidget {
|
|
|
|
UserIdentifyPage({Key? key}) : super(key: key);
|
|
|
|
UserIdentifyPage({Key? key}) : super(key: key);
|
|
|
@ -104,12 +102,9 @@ class _UserIdentifyPageState extends State<UserIdentifyPage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
BeeInputRow.button(
|
|
|
|
BeeInputRow.button(
|
|
|
|
title: '身份',
|
|
|
|
title: '身份',
|
|
|
|
hintText: _identify,
|
|
|
|
hintText: '租客',
|
|
|
|
isRequire: true,
|
|
|
|
isRequire: true,
|
|
|
|
onPressed: () async {
|
|
|
|
onPressed: () async {},
|
|
|
|
await Get.bottomSheet(_identifyBottomSheet());
|
|
|
|
|
|
|
|
setState(() {});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
)
|
|
|
|
)
|
|
|
|
].sepWidget(separate: 32.w.heightBox),
|
|
|
|
].sepWidget(separate: 32.w.heightBox),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -145,37 +140,33 @@ class _UserIdentifyPageState extends State<UserIdentifyPage> {
|
|
|
|
BotToast.showText(text: '请先选择性别');
|
|
|
|
BotToast.showText(text: '请先选择性别');
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (_identify == '请选择身份') {
|
|
|
|
|
|
|
|
BotToast.showText(text: '请先选择身份');
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Widget _identifyBottomSheet() {
|
|
|
|
// Widget _identifyBottomSheet() {
|
|
|
|
return CupertinoActionSheet(
|
|
|
|
// return CupertinoActionSheet(
|
|
|
|
title:
|
|
|
|
// title:
|
|
|
|
'选择身份'.text.size(32.sp).bold.color(ktextPrimary).isIntrinsic.make(),
|
|
|
|
// '选择身份'.text.size(32.sp).bold.color(ktextPrimary).isIntrinsic.make(),
|
|
|
|
cancelButton: TextButton(
|
|
|
|
// cancelButton: TextButton(
|
|
|
|
onPressed: () => Get.back(),
|
|
|
|
// onPressed: () => Get.back(),
|
|
|
|
child: '取消'.text.size(28.sp).color(ktextSubColor).isIntrinsic.make()),
|
|
|
|
// child: '取消'.text.size(28.sp).color(ktextSubColor).isIntrinsic.make()),
|
|
|
|
actions: [
|
|
|
|
// actions: [
|
|
|
|
CupertinoActionSheetAction(
|
|
|
|
// CupertinoActionSheetAction(
|
|
|
|
onPressed: () {
|
|
|
|
// onPressed: () {
|
|
|
|
_identify = '业主';
|
|
|
|
// _identify = '业主';
|
|
|
|
Get.back();
|
|
|
|
// Get.back();
|
|
|
|
},
|
|
|
|
// },
|
|
|
|
child:
|
|
|
|
// child:
|
|
|
|
'业主'.text.size(30.sp).color(ktextPrimary).isIntrinsic.make()),
|
|
|
|
// '业主'.text.size(30.sp).color(ktextPrimary).isIntrinsic.make()),
|
|
|
|
CupertinoActionSheetAction(
|
|
|
|
// CupertinoActionSheetAction(
|
|
|
|
onPressed: () {
|
|
|
|
// onPressed: () {
|
|
|
|
_identify = '租户';
|
|
|
|
// _identify = '租户';
|
|
|
|
Get.back();
|
|
|
|
// Get.back();
|
|
|
|
},
|
|
|
|
// },
|
|
|
|
child: '租户'.text.size(30.sp).color(ktextPrimary).isIntrinsic.make())
|
|
|
|
// child: '租户'.text.size(30.sp).color(ktextPrimary).isIntrinsic.make())
|
|
|
|
],
|
|
|
|
// ],
|
|
|
|
);
|
|
|
|
// );
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
Widget _errorDialog() {
|
|
|
|
Widget _errorDialog() {
|
|
|
|
return CupertinoAlertDialog(
|
|
|
|
return CupertinoAlertDialog(
|
|
|
|