easyrefresh library

Classes

$en
$zh_CN
$zh_HK
$zh_MO
$zh_TW
ClassicalFooter
经典Footer
ClassicalFooterWidget
经典Footer组件
ClassicalFooterWidgetState
ClassicalHeader
经典Header
ClassicalHeaderWidget
经典Header组件
ClassicalHeaderWidgetState
CustomFooter
通用Footer构造器
CustomHeader
通用Header
EasyRefresh
EasyRefresh 下拉刷新,上拉加载组件
EasyRefreshController
EasyRefresh控制器
EasyRefreshSliverLoadControl
A sliver widget implementing the iOS-style pull to refresh content control. [...]
EasyRefreshSliverRefreshControl
A sliver widget implementing the iOS-style pull to refresh content control. [...]
FirstRefreshHeader
首次刷新Header
Header
GeneratedLocalizationsDelegate
GlobalEasyRefreshLocalizations
Header
LinkFooterNotifier
链接通知器
LinkHeader
链接器Header
LinkHeaderNotifier
链接通知器
NotificationFooter
通知器Footer
NotificationHeader
通知器Header
ScrollNotificationInterceptor
滚动通知拦截器(用于拦截其他UI组件的滑动事件)
TaskState
任务状态

Functions

getLang(Locale l) String

Enums

LoadMode
The current state of the refresh control. [...]
RefreshMode
The current state of the refresh control. [...]

Typedefs

BindLoadIndicator(FinishLoad finishLoad, VoidCallback resetLoadState) → void
绑定加载指示剂
BindRefreshIndicator(FinishRefresh finishRefresh, VoidCallback resetRefreshState) → void
绑定刷新指示剂
EasyRefreshChildBuilder(BuildContext context, ScrollPhysics physics, Widget header, Widget footer) Widget
子组件构造器
FinishLoad({bool success, bool noMore}) → void
结束加载 success 为是否成功(为false时,noMore无效) noMore 为是否有更多数据
FinishRefresh({bool success, bool noMore}) → void
结束刷新 success 为是否成功(为false时,noMore无效) noMore 为是否有更多数据
LoadControlBuilder(BuildContext context, LoadMode loadState, double pulledExtent, double loadTriggerPullDistance, double loadIndicatorExtent, AxisDirection axisDirection, bool float, Duration completeDuration, bool enableInfiniteLoad, bool success, bool noMore) Widget
Signature for a builder that can create a different widget to show in the refresh indicator space depending on the current state of the refresh control and the space available. [...]
OnLoadCallback() Future<void>
A callback function that's invoked when the EasyRefreshSliverLoadControl is pulled a loadTriggerPullDistance. Must return a Future. Upon completion of the Future, the EasyRefreshSliverLoadControl enters the LoadMode.done state and will start to go away.
OnRefreshCallback() Future<void>
A callback function that's invoked when the EasyRefreshSliverRefreshControl is pulled a refreshTriggerPullDistance. Must return a Future. Upon completion of the Future, the EasyRefreshSliverRefreshControl enters the RefreshMode.done state and will start to go away.
RefreshControlBuilder(BuildContext context, RefreshMode refreshState, double pulledExtent, double refreshTriggerPullDistance, double refreshIndicatorExtent, AxisDirection axisDirection, bool float, Duration completeDuration, bool enableInfiniteRefresh, bool success, bool noMore) Widget
Signature for a builder that can create a different widget to show in the refresh indicator space depending on the current state of the refresh control and the space available. [...]