Explorar o código

fix displayDouble

Melon hai 1 ano
pai
achega
cdcf7844f1
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  1. 1 1
      lib/architecture/utils/nums.dart
  2. 2 2
      pubspec.lock

+ 1 - 1
lib/architecture/utils/nums.dart

@@ -8,7 +8,7 @@ class NumUtils {
   /// [placeholder] 空数值占位
   static String displayDouble(double? val, [String placeholder = ""]) {
     if (val == null) {
-      return "--";
+      return placeholder;
     }
     if (val == val.round()) {
       return val.round().toString();

+ 2 - 2
pubspec.lock

@@ -993,8 +993,8 @@ packages:
     dependency: "direct main"
     description:
       path: "."
-      ref: a78282eb73
-      resolved-ref: a78282eb73669446f4d649cea65f114cb3bf4a54
+      ref: e20aef0
+      resolved-ref: e20aef0773eaaf326ce3358f535b8cc340b131de
       url: "http://git.ius.plus/Project-Vital/FlutterDevicePlugin.git"
     source: git
     version: "0.0.1"