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

master
xiaodong 5 years ago
parent ba084e6e6a
commit 7d35ade7f7

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

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

Loading…
Cancel
Save