Last updated:
0 purchases
flutter utils code
flutter_utils_code #
A Flutter utils package.
pub.dev地址:flutter_utils_code-pub.dev
Getting Started #
APIs #
正则相关 -> RegexUtils #
isMatch:匹配正则
isMobileExact:精确验证手机号
isMobileSimple:简单验证手机号
isEmail:验证邮箱
copied to clipboard
页面生命周期 -> LifeState #
需要在 MaterialApp -> navigatorObservers 注册 lifeObserver
copied to clipboard
栏相关 -> BarUtils #
getStatusBarHeight: 获取状态栏高度
copied to clipboard
String扩展 -> StringExt #
toDouble: 转换double
isChinaMobile: 判断中国手机号
isEmptyOrNull: 空和null
fromCommaToList: 用逗号隔开的string 转为 list
capitalizeFirst:首字母大写方法
trimAll:清除全部空格
copied to clipboard
函数防抖 -> EventFilter #
debounce
throttle
copied to clipboard
文件相关 -> FileUtils #
renderSize:转换double 文件大小 'B','K','M','G'
getNameFromFilePath :根据路径获取文件名
copied to clipboard
double扩展 -> DoubleExt #
toMyStringAsFixed: 转换为String
toMyDouble: 1.2 -> 1.2 , 1.0 -> 1
copied to clipboard
widget扩展 -> WidgetExt #
padding
expand
center
align
copied to clipboard
List扩展 -> ListExt #
toCommaStr: 逗号隔开的字符串
copied to clipboard
Duration扩展 -> DurationExt #
toStringNoMicroseconds: 转换 00:00:00格式
copied to clipboard
时间工具 -> TimeUtils #
getWeekStr:获取星期字符串
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.