更新设备校准

This commit is contained in:
wyf
2025-06-03 09:00:01 +08:00
parent 7a816922fa
commit eed93bc6a4
30 changed files with 4257 additions and 1259 deletions

View File

@@ -827,31 +827,16 @@ void showProgressDialog(
if (Navigator.canPop(dialogContext)) {
Navigator.of(dialogContext).pop();
}
// TopSlideNotification.show(
// context,
// text: "设备校准失败".tr,
// textColor: Colors.red,
// );
});
} else if (progress >= 100) {
// 延迟关闭弹窗和提示成功(可选)
Future.delayed(Duration(milliseconds: 300), () {
if (Navigator.canPop(dialogContext)) {
Navigator.of(dialogContext).pop();
}
// TopSlideNotification.show(
// context,
// text: "设备校准完成".tr,
// );
// Obx(() {
// TopSlideNotification.show(context,
// text:
// deviceCalibrationController.tips.value);
// return Container();
// });
}
});
}
return Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
@@ -879,14 +864,11 @@ void showProgressDialog(
),
),
),
Container(
// width: progress *
// MediaQuery.of(context).size.width *
// 0.4,
Container(
width: progress /
100 *
MediaQuery.of(context).size.width *
0.8, // 进度条宽度按比例计算,最大宽度是屏幕宽度的 0.8
0.8,
height: 21.rpx,
decoration: BoxDecoration(
gradient: LinearGradient(
@@ -919,7 +901,7 @@ void showProgressDialog(
),
),
],
);
);
},
);
}