dgg_flutter_common_utils (Dart常用工具类库)

Dart常用工具类库。包含日期,正则,倒计时,定时任务,时间轴,屏幕工具等工具类。如果你有好的工具类欢迎添加进来.

使用方式:

使用方式:

dependencies:
  dgg_flutter_common_utils: ^0.0.1 
      git: 
        url: http://172.16.0.25/MobileFrameworks/Flutter-Modules/dgg_flutter_common_utils.git
        version: ^0.0.1

常用工具类

1、TimelineUtil : 时间轴. 2、TimerUtil : 倒计时,定时任务. 3、MoneyUtil : 精确转换,元转分,分转元,支持格式输出. 4、LogUtil : 简单封装打印日志. 5、DateUtil : 日期转换格式化输出. 6、RegexUtil : 正则验证手机号,身份证,邮箱等等. 7、NumUtil : 保留x位小数, 精确加、减、乘、除, 防止精度丢失. 8、ObjectUtil : 判断对象是否为空(String List Map),判断两个List是否相等. 9、EnDecodeUtil : md5加密,Base64加/解密. 10、TextUtil : 银行卡号每隔4位加空格,每隔3三位加逗号,隐藏手机号等等. 11、ScreenUtil : 屏幕工具类.

Libraries

dgg_flutter_common_utils

Dart

VM

dart:ffi
Foreign Function Interface for interoperability with the C programming language. [...]

Web

dart:html
HTML elements and other resources for web-based applications that need to interact with the browser and the DOM (Document Object Model). [...]
dart:js
Low-level support for interoperating with JavaScript. [...]
dart:js_util
Utility methods to efficiently manipulate typed JSInterop objects in cases where the name to call is not known at runtime. You should only use these methods when the same effect cannot be achieved with @JS annotations. These methods would be extension methods on JSObject if Dart supported extension methods.