修改人员资料焦点冲突
This commit is contained in:
@@ -310,7 +310,7 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
||||
decoration: BoxDecoration(),
|
||||
child: InkWell(
|
||||
onTap: () {
|
||||
// 触摸收起键盘
|
||||
// 延迟执行的代码
|
||||
FocusScope.of(context)
|
||||
.requestFocus(
|
||||
FocusNode());
|
||||
@@ -318,7 +318,6 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
||||
const Duration(
|
||||
milliseconds:
|
||||
250), () {
|
||||
// 延迟执行的代码
|
||||
showOneSelectionDialog(
|
||||
context,
|
||||
arr: ["女", "男"],
|
||||
@@ -338,12 +337,6 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
||||
sindex; // 👈 保存为 0 / 1
|
||||
controller
|
||||
.updateAll();
|
||||
print(
|
||||
"gender $sindex");
|
||||
}).then((d) {
|
||||
// Timer(Duration.zero, () {
|
||||
// FocusScope.of(context).unfocus();
|
||||
// });
|
||||
});
|
||||
});
|
||||
},
|
||||
@@ -409,77 +402,6 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
||||
)),
|
||||
),
|
||||
getLine(),
|
||||
// Container(
|
||||
// width: double.infinity,
|
||||
// height: 90.rpx,
|
||||
// margin: EdgeInsets.only(
|
||||
// left: 40.rpx, right: 35.rpx),
|
||||
// decoration: BoxDecoration(),
|
||||
// child: Row(
|
||||
// mainAxisSize: MainAxisSize.max,
|
||||
// mainAxisAlignment:
|
||||
// MainAxisAlignment.spaceBetween,
|
||||
// children: [
|
||||
// Text(
|
||||
// '身高(cm)',
|
||||
// style: TextStyle(
|
||||
// fontFamily: 'Readex Pro',
|
||||
// color: Color(0xFF9EA4B7),
|
||||
// fontSize: 30.rpx,
|
||||
// letterSpacing: 0,
|
||||
// ),
|
||||
// ),
|
||||
// InkWell(
|
||||
// onTap: () {
|
||||
// FocusScope.of(context).unfocus();
|
||||
// Future.delayed(
|
||||
// const Duration(
|
||||
// milliseconds: 250), () {
|
||||
// showHeightPickerDialog(
|
||||
// context,
|
||||
// initialHeight: controller
|
||||
// .model
|
||||
// .peopleList[index]
|
||||
// ['height'] ??
|
||||
// 170,
|
||||
// onConfirm:
|
||||
// (int selectedHeight) {
|
||||
// controller.model.peopleList[
|
||||
// index]['height'] =
|
||||
// selectedHeight
|
||||
// .toString();
|
||||
// controller.updateAll();
|
||||
// print(
|
||||
// "身高: $selectedHeight cm");
|
||||
// },
|
||||
// );
|
||||
// });
|
||||
// },
|
||||
// child: Row(
|
||||
// children: [
|
||||
// Text(
|
||||
// controller.model.peopleList[
|
||||
// index]
|
||||
// ['height'] !=
|
||||
// null
|
||||
// ? "${controller.model.peopleList[index]['height']} cm"
|
||||
// : '',
|
||||
// style: TextStyle(
|
||||
// fontFamily: 'Readex Pro',
|
||||
// color: Colors.white,
|
||||
// fontSize: 30.rpx,
|
||||
// ),
|
||||
// ),
|
||||
// SizedBox(width: 16.rpx),
|
||||
// Icon(Icons.expand_more,
|
||||
// color: Colors.white,
|
||||
// size: 48.rpx),
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
Container(
|
||||
width: double.infinity,
|
||||
height: 90.rpx,
|
||||
@@ -489,25 +411,26 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
||||
decoration: BoxDecoration(),
|
||||
child: InkWell(
|
||||
onTap: () {
|
||||
// Convert string height to int for initial value
|
||||
final currentHeight =
|
||||
controller.model
|
||||
.peopleList[
|
||||
index]['height'];
|
||||
final initialHeight =
|
||||
currentHeight != null
|
||||
? int.tryParse(
|
||||
currentHeight
|
||||
.toString()) ??
|
||||
170
|
||||
: 170;
|
||||
|
||||
FocusScope.of(context)
|
||||
.unfocus();
|
||||
.requestFocus(
|
||||
FocusNode());
|
||||
Future.delayed(
|
||||
const Duration(
|
||||
milliseconds: 250),
|
||||
() {
|
||||
// Convert string height to int for initial value
|
||||
final currentHeight =
|
||||
controller.model
|
||||
.peopleList[
|
||||
index]['height'];
|
||||
final initialHeight =
|
||||
currentHeight != null
|
||||
? int.tryParse(
|
||||
currentHeight
|
||||
.toString()) ??
|
||||
170
|
||||
: 170;
|
||||
|
||||
showHeightPickerDialog(
|
||||
context,
|
||||
initialHeight:
|
||||
@@ -591,7 +514,8 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
||||
child: InkWell(
|
||||
onTap: () {
|
||||
FocusScope.of(context)
|
||||
.unfocus();
|
||||
.requestFocus(
|
||||
FocusNode());
|
||||
Future.delayed(
|
||||
const Duration(
|
||||
milliseconds:
|
||||
@@ -674,7 +598,6 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
||||
),
|
||||
)),
|
||||
),
|
||||
|
||||
getLine(),
|
||||
Obx(
|
||||
() => Container(
|
||||
@@ -686,7 +609,7 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
||||
decoration: BoxDecoration(),
|
||||
child: InkWell(
|
||||
onTap: () {
|
||||
// 触摸收起键盘
|
||||
// 延迟执行的代码
|
||||
FocusScope.of(context)
|
||||
.requestFocus(
|
||||
FocusNode());
|
||||
@@ -694,7 +617,6 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
||||
const Duration(
|
||||
milliseconds:
|
||||
250), () {
|
||||
// 延迟执行的代码
|
||||
showDateSelectionDialog(
|
||||
context,
|
||||
checkDate: controller
|
||||
@@ -718,10 +640,6 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
||||
controller
|
||||
.updateAll();
|
||||
print("$d");
|
||||
}).then((d) {
|
||||
// Timer(Duration.zero, () {
|
||||
// FocusScope.of(context).unfocus();
|
||||
// });
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user