[plcs#8888] 取整问题,打日志控制

master
xiaodong 5 years ago
parent ba084e6e6a
commit 7d35ade7f7

@ -1,4 +1,5 @@
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
/** /**
* 便 * 便
@ -14,10 +15,9 @@ class LogUtil {
* TAG: * TAG:
* message+ * message+
*/ */
static void log( static void log({@required dynamic TAG, String message = ""}) {
{@required dynamic TAG , String message = ""}) { if (_enableLog && kDebugMode) {
if (_enableLog) { debugPrint("flutter_custom_calendar------$TAG------>$message");
print("flutter_custom_calendar------$TAG------>$message");
} }
} }
} }

@ -212,8 +212,8 @@ class SolarTermUtil {
* @return * @return
*/ */
static double doubleFloor(double v) { static double doubleFloor(double v) {
v = v.floor().toDouble();
if (v < 0) return v + 1; if (v < 0) return v + 1;
return v; return v;
} }

Loading…
Cancel
Save