更新样式
This commit is contained in:
@@ -853,19 +853,23 @@ class _CalibrationPersonPageState extends State<CalibrationPersonPage> {
|
||||
),
|
||||
onWillPop: () async {
|
||||
bool exit = false;
|
||||
if (deviceCalibrationController.flag.value != 2) {
|
||||
showConfirmDialog(context, Container(), "校准未完成提示".tr,
|
||||
onConfirm: () async {
|
||||
if (start) {
|
||||
if (deviceCalibrationController.flag.value != 2) {
|
||||
showConfirmDialog(context, Container(), "校准未完成提示".tr,
|
||||
onConfirm: () async {
|
||||
exit = true;
|
||||
// await Get.toNamed("/personPage");
|
||||
// print("object");
|
||||
deviceCalibrationController.process.value = 0;
|
||||
deviceCalibrationController.bed_calibration.value = 0;
|
||||
deviceCalibrationController.position_calibration.value = 0;
|
||||
blueteethBindController.cid!.value = "";
|
||||
}, onCancel: () {
|
||||
exit = false;
|
||||
});
|
||||
} else {
|
||||
exit = true;
|
||||
// await Get.toNamed("/personPage");
|
||||
// print("object");
|
||||
deviceCalibrationController.process.value = 0;
|
||||
deviceCalibrationController.bed_calibration.value = 0;
|
||||
deviceCalibrationController.position_calibration.value = 0;
|
||||
blueteethBindController.cid!.value = "";
|
||||
}, onCancel: () {
|
||||
exit = false;
|
||||
});
|
||||
}
|
||||
} else {
|
||||
exit = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user