修改人员资料焦点冲突
This commit is contained in:
@@ -205,6 +205,8 @@
|
|||||||
"请选择身高": "请输入身高",
|
"请选择身高": "请输入身高",
|
||||||
"人员资料": "人员资料",
|
"人员资料": "人员资料",
|
||||||
"请输入姓名": "请输入姓名",
|
"请输入姓名": "请输入姓名",
|
||||||
"解除分享":"解除分享"
|
"解除分享": "解除分享",
|
||||||
|
"最高分": "最高分",
|
||||||
|
"最低分": "最低分",
|
||||||
|
"本周平均分":"本周平均分"
|
||||||
}
|
}
|
||||||
@@ -4,7 +4,7 @@ import 'package:vbvs_app/common/util/FitTool.dart';
|
|||||||
import 'package:vbvs_app/common/util/MyUtils.dart';
|
import 'package:vbvs_app/common/util/MyUtils.dart';
|
||||||
import 'package:vbvs_app/enum/APPPackageType.dart';
|
import 'package:vbvs_app/enum/APPPackageType.dart';
|
||||||
|
|
||||||
class AppConstants {
|
class AppConstants {
|
||||||
// App-related constants
|
// App-related constants
|
||||||
static const int code_time = 60; //验证码倒计时
|
static const int code_time = 60; //验证码倒计时
|
||||||
static const int limit = 10; //分页数量
|
static const int limit = 10; //分页数量
|
||||||
@@ -48,5 +48,5 @@ class AppConstants {
|
|||||||
|
|
||||||
//系统参数
|
//系统参数
|
||||||
//运行打包APP模式
|
//运行打包APP模式
|
||||||
int ent_type = APPPackageType.TH.code;//1.默认太和 2.欢睡 3.眠花糖
|
int ent_type = APPPackageType.MHT.code; //1.默认太和 2.欢睡 3.眠花糖
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ class LanguagePage extends GetView<MHLanguageController> {
|
|||||||
),
|
),
|
||||||
// 左侧图标
|
// 左侧图标
|
||||||
Positioned(
|
Positioned(
|
||||||
left: 20.rpx,
|
left: 0.rpx,
|
||||||
child: returnIconButtomNew,
|
child: returnIconButtomNew,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -166,8 +166,11 @@ class _BluetoothPageState extends State<BluetoothPage> {
|
|||||||
context, '详情', "/devicePeopleInfo",
|
context, '详情', "/devicePeopleInfo",
|
||||||
arguments: obsData),
|
arguments: obsData),
|
||||||
_buildMenuButton(
|
_buildMenuButton(
|
||||||
context, '人员资料', "/peopleInfoPage",
|
context,
|
||||||
arguments: obsData,),
|
'人员资料',
|
||||||
|
"/peopleInfoPage",
|
||||||
|
arguments: obsData,
|
||||||
|
),
|
||||||
_buildMenuButton(
|
_buildMenuButton(
|
||||||
context, '房间选择', "/roomPickerPage",
|
context, '房间选择', "/roomPickerPage",
|
||||||
arguments: obsData),
|
arguments: obsData),
|
||||||
|
|||||||
@@ -310,7 +310,7 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
|||||||
decoration: BoxDecoration(),
|
decoration: BoxDecoration(),
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
// 触摸收起键盘
|
// 延迟执行的代码
|
||||||
FocusScope.of(context)
|
FocusScope.of(context)
|
||||||
.requestFocus(
|
.requestFocus(
|
||||||
FocusNode());
|
FocusNode());
|
||||||
@@ -318,7 +318,6 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
|||||||
const Duration(
|
const Duration(
|
||||||
milliseconds:
|
milliseconds:
|
||||||
250), () {
|
250), () {
|
||||||
// 延迟执行的代码
|
|
||||||
showOneSelectionDialog(
|
showOneSelectionDialog(
|
||||||
context,
|
context,
|
||||||
arr: ["女", "男"],
|
arr: ["女", "男"],
|
||||||
@@ -338,12 +337,6 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
|||||||
sindex; // 👈 保存为 0 / 1
|
sindex; // 👈 保存为 0 / 1
|
||||||
controller
|
controller
|
||||||
.updateAll();
|
.updateAll();
|
||||||
print(
|
|
||||||
"gender $sindex");
|
|
||||||
}).then((d) {
|
|
||||||
// Timer(Duration.zero, () {
|
|
||||||
// FocusScope.of(context).unfocus();
|
|
||||||
// });
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -409,77 +402,6 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
|||||||
)),
|
)),
|
||||||
),
|
),
|
||||||
getLine(),
|
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(
|
Container(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
height: 90.rpx,
|
height: 90.rpx,
|
||||||
@@ -489,25 +411,26 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
|||||||
decoration: BoxDecoration(),
|
decoration: BoxDecoration(),
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
onTap: () {
|
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)
|
FocusScope.of(context)
|
||||||
.unfocus();
|
.requestFocus(
|
||||||
|
FocusNode());
|
||||||
Future.delayed(
|
Future.delayed(
|
||||||
const Duration(
|
const Duration(
|
||||||
milliseconds: 250),
|
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(
|
showHeightPickerDialog(
|
||||||
context,
|
context,
|
||||||
initialHeight:
|
initialHeight:
|
||||||
@@ -591,7 +514,8 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
|||||||
child: InkWell(
|
child: InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
FocusScope.of(context)
|
FocusScope.of(context)
|
||||||
.unfocus();
|
.requestFocus(
|
||||||
|
FocusNode());
|
||||||
Future.delayed(
|
Future.delayed(
|
||||||
const Duration(
|
const Duration(
|
||||||
milliseconds:
|
milliseconds:
|
||||||
@@ -674,7 +598,6 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
|||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
),
|
),
|
||||||
|
|
||||||
getLine(),
|
getLine(),
|
||||||
Obx(
|
Obx(
|
||||||
() => Container(
|
() => Container(
|
||||||
@@ -686,7 +609,7 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
|||||||
decoration: BoxDecoration(),
|
decoration: BoxDecoration(),
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
// 触摸收起键盘
|
// 延迟执行的代码
|
||||||
FocusScope.of(context)
|
FocusScope.of(context)
|
||||||
.requestFocus(
|
.requestFocus(
|
||||||
FocusNode());
|
FocusNode());
|
||||||
@@ -694,7 +617,6 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
|||||||
const Duration(
|
const Duration(
|
||||||
milliseconds:
|
milliseconds:
|
||||||
250), () {
|
250), () {
|
||||||
// 延迟执行的代码
|
|
||||||
showDateSelectionDialog(
|
showDateSelectionDialog(
|
||||||
context,
|
context,
|
||||||
checkDate: controller
|
checkDate: controller
|
||||||
@@ -718,10 +640,6 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
|||||||
controller
|
controller
|
||||||
.updateAll();
|
.updateAll();
|
||||||
print("$d");
|
print("$d");
|
||||||
}).then((d) {
|
|
||||||
// Timer(Duration.zero, () {
|
|
||||||
// FocusScope.of(context).unfocus();
|
|
||||||
// });
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -71,7 +71,6 @@ class _PrivacyPolicyPageState extends State<PrivacyPolicyPage> {
|
|||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
/// 左边返回按钮
|
/// 左边返回按钮
|
||||||
Positioned(
|
Positioned(
|
||||||
left: 0,
|
left: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user