Skip to main content

w_tools_core 1.0.1 copy "w_tools_core: ^1.0.1" to clipboard
w_tools_core: ^1.0.1 copied to clipboard

w_tools 的基础工具层:扩展方法、异步任务、校验、正则、加密、存储、日志、倒计时、平台判断与全局配置,零业务框架依赖。

Changelog #

1.0.1 #

Deprecated #

  • WConfig.assetImagePath:该字段从未被读取,资源前缀的实际开关是 w_tools_ui 的 WAssets.imagePath(聚合包的 WConfig.assetImagePath 已改为代理它)。 字段仅为源码兼容保留,将在下个大版本移除。

1.0.0 #

首次发布。

  • 密码规则:WRegExpPattern.password 与 WValidator.isValidPassword 统一为 「≥8 位,且同时包含小写字母、大写字母与数字(允许符号)」; WValidator.passwordPattern 是该规则的唯一来源(1.0.0 首发即为此规则)。
  • 新增 WAsync / WAsyncConfig / WCancelToken:支持重试、超时、并发控制、协作式取消与加载状态合并
  • WAsync.wait / WAsync.any 在等待期间响应取消;runWithRetry 支持 retryIf 过滤重试异常
  • 新增 WValidator:邮箱、手机号、身份证、银行卡 Luhn、真实日期、时间、数值等校验
  • 新增 WRegExp / WRegExpPattern / WRegExpPreset:正则模式、匹配、提取、掩码与格式化
  • 新增 WEncrypt / WHash:AES-CBC(安全随机 IV)、Base64、MD5、SHA、HMAC 与加盐密码哈希
  • 新增 WStorage / WToken:基于 SharedPreferences 的本地存储与 Token 管理
  • 新增 WLogger:分级日志、标签、性能计时与级别切换
  • 新增 WCountdown、WPlatform、WUx、WMapExtension 等常用工具
  • 提供 WConfig 全局配置(资源路径与 Token 存储键名)
0
likes
100
points
144
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

w_tools 的基础工具层:扩展方法、异步任务、校验、正则、加密、存储、日志、倒计时、平台判断与全局配置,零业务框架依赖。

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#flutter #utilities #extensions #validation #storage

License

MIT (license)

Dependencies

convert, crypto, encrypt, flutter, logger, shared_preferences, synchronized

More

Packages that depend on w_tools_core