Melon 9 сар өмнө
parent
commit
5e8872ec14

+ 5 - 1
lib/view/measure/custom_item_buttons/pisa.dart

@@ -100,7 +100,11 @@ class _AlsVelItemButtonState extends FState<AlsVelItemButton> {
         if (doubleValue == null) {
           PromptBox.toast("请输入正确的Als.Vel数值");
         } else {
-          _customAlsVelValue = doubleValue;
+          if (doubleValue < 0) {
+            PromptBox.toast("Als.Vel必须大于0");
+          } else {
+            _customAlsVelValue = doubleValue;
+          }
         }
       },
     );

+ 5 - 1
lib/view/measure/custom_item_buttons/rvsp.dart

@@ -141,7 +141,11 @@ class _RapItemButtonState extends FState<RapItemButton> {
         if (doubleValue == null) {
           PromptBox.toast("请输入正确的RAP数值");
         } else {
-          _customRapValue = doubleValue;
+          if (doubleValue < 0) {
+            PromptBox.toast("RAP必须大于0");
+          } else {
+            _customRapValue = doubleValue;
+          }
         }
       },
     );