|
|
@ -13,7 +13,7 @@ class OtaUpgradeView extends GetView<OtaUpgradeController> { |
|
|
|
|
|
|
|
|
return WillPopScope( |
|
|
return WillPopScope( |
|
|
onWillPop: () async { |
|
|
onWillPop: () async { |
|
|
if (controller.isUpgrade.value) { |
|
|
if (controller.isUpgrade.value && controller.showDetailedStatus.value) { |
|
|
// 显示确认弹窗 |
|
|
// 显示确认弹窗 |
|
|
await Get.dialog( |
|
|
await Get.dialog( |
|
|
AlertDialog( |
|
|
AlertDialog( |
|
|
@ -54,7 +54,8 @@ class OtaUpgradeView extends GetView<OtaUpgradeController> { |
|
|
color: isDarkMode ? Colors.white : Colors.black, |
|
|
color: isDarkMode ? Colors.white : Colors.black, |
|
|
), |
|
|
), |
|
|
onPressed: () { |
|
|
onPressed: () { |
|
|
if (controller.isUpgrade.value) { |
|
|
if (controller.isUpgrade.value && |
|
|
|
|
|
controller.showDetailedStatus.value) { |
|
|
// 显示确认弹窗 |
|
|
// 显示确认弹窗 |
|
|
Get.dialog( |
|
|
Get.dialog( |
|
|
AlertDialog( |
|
|
AlertDialog( |
|
|
@ -827,7 +828,7 @@ class OtaUpgradeView extends GetView<OtaUpgradeController> { |
|
|
// 更新按钮 |
|
|
// 更新按钮 |
|
|
Widget _buildUpdateButton(bool isDarkMode) { |
|
|
Widget _buildUpdateButton(bool isDarkMode) { |
|
|
return Obx(() { |
|
|
return Obx(() { |
|
|
if (controller.isUpgrade.value) { |
|
|
if (controller.isUpgrade.value && controller.showDetailedStatus.value) { |
|
|
return _buildProgressIndicator(isDarkMode); |
|
|
return _buildProgressIndicator(isDarkMode); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|