Skip to main content

w_tools_async 1.0.0 copy "w_tools_async: ^1.0.0" to clipboard
w_tools_async: ^1.0.0 copied to clipboard

w_tools 的异步层:执行、重试、超时、取消、四态状态、Controller 与可复用异步视图。

Changelog #

1.0.0 #

首次发布。

  • WAsync / WAsyncConfig / WCancelToken:执行、重试、超时、并发控制与取消。
  • WAsyncState / WAsyncStatus:四态异步状态快照。
  • WAsyncController:每个异步区块独立管理状态、旧请求丢弃与手动重试。
  • WAsyncView / WAsyncErrorView / WAsyncErrorBanner / WAsyncViewDefaults:异步视图、默认错误态与刷新错误条。
  • WAsyncStateBuilder:滚动页面 / SmartRefresher / CustomScrollView 的状态构建入口。
  • WAsyncBuilder:WAsyncStateBuilder 的兼容别名。
  • WAsyncPagedController:分页列表的首屏、刷新、追加、hasMore 与 loadMore 错误。
  • WAsyncStateSliver:CustomScrollView 的四态 sliver、failed+旧数据;默认不额外添加 refreshing 进度。
  • WAsyncSliverDefaults:Sliver 页面独立的默认 loading/empty/error/banner 与 refreshing sliver。
  • WAsyncPagedController 的 initial: WAsyncState.ready(...) 下一次 loadMore() 从 initialPage + 1 开始,避免重复追加第一页。
0
likes
145
points
--
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

w_tools 的异步层:执行、重试、超时、取消、四态状态、Controller 与可复用异步视图。

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#flutter #async #state #ui

License

MIT (license)

Dependencies

flutter

More

Packages that depend on w_tools_async