refresh_paging_listview library

Classes

BaseRefreshController
BaseRefreshList
BaseRefreshListState<T, S extends BaseRefreshList>
  • 定义了一个泛型类,第一个泛型是列表的数据类型,第二个泛型是继承自BaseRefreshList的类
  • 定义了一个RefreshController,用于控制刷新和加载更多
  • 定义了一个items列表,用于存放列表数据
  • 定义了一个_page变量,用于存放当前页码
  • 定义了一个inLoading变量,用于判断是否正在加载数据
  • 在initState方法中,调用了refresh方法,用于初始化列表数据
  • 定义了一个buildRefreshList方法,用于构建列表,该方法返回一个SmartRefresher组件,该组件包含了列表的刷新和加载更多功能
  • 定义了一个itemBuilder方法,用于构建列表的item,该方法返回一个buildListItem方法,该方法需要在子类中实现
  • 定义了一个refresh方法,用于刷新列表数据,该方法调用了loadData方法,该方法需要在子类中实现
  • 定义了一个loadMore方法,用于加载更多数据,该方法调用了loadData方法,该方法需要在子类中实现
  • 定义了一个onDataChanged方法,用于刷新或加载更多数据变更
  • 定义了一个buildEmptyView方法,用于构建空数据布局
  • BezierCircleHeader
    bezier + circle indicator,you can use this directly
    BezierHeader
    bezier container,if you need to implements indicator with bezier ,you can use consider about use this this will add the bezier container effect
    ChRefreshString
    Chinese
    ClassicFooter
    the most common indicator,combine with a text and a icon
    ClassicHeader
    the most common indicator,combine with a text and a icon
    CustomFooter
    a custom Indicator for footer,the usage I have put in CustomHeader,same with that See also
    CustomHeader
    a custom Indicator for header
    DeRefreshString
    German
    EmptyConfig
    EmptyFooter
    EnRefreshString
    English
    EsRefreshString
    Spanish
    FrRefreshString
    French
    ItRefreshString
    Italian
    JpRefreshString
    Japanese
    KrRefreshString
    Korean
    LinkFooter
    enable footer link other footer place outside the viewport
    LinkHeader
    enable header link other header place outside the viewport
    ListFooter
    LoadIndicator
    a widget implements pull up load
    LoadIndicatorState<T extends LoadIndicator>
    LoadingProcessor
    footer Indicator exposure interface
    MaterialClassicHeader
    mostly use flutter inner's RefreshIndicator
    MyRouteObserver<R extends Route>
    NlRefreshString
    Dutch
    OverScrollBehavior
    PtRefreshString
    RefreshConfiguration
    Controls how SmartRefresher widgets behave in a subtree.the usage just like ScrollConfiguration
    RefreshController
    A controller controll header and footer state, it can trigger driving request Refresh ,set the initalRefresh,status if needed
    RefreshIndicator
    a widget implements ios pull down refresh effect and Android material RefreshIndicator overScroll effect
    RefreshIndicatorState<T extends RefreshIndicator>
    Internal Implementation of Head Indicator
    RefreshLocalizations
    Implementation of localized strings for the ClassicHeader,ClassicFooter,TwoLevelHeader
    RefreshLocalizationsDelegate
    RefreshNotifier<T>
    RefreshPhysics
    a scrollPhysics for config refresh scroll effect,enable viewport out of edge whatever physics it is in ClampingScrollPhysics, it doesn't allow to flip out of edge,but in RefreshPhysics,it will allow to do that, by parent physics passing,it also can attach the different of iOS and Android different scroll effect it also handles interception scrolling when refreshed, or when the second floor is open and closed. with SpringDescription passing,you can custom spring back animate,the more paramter can be setting in RefreshConfiguration
    RefreshProcessor
    head Indicator exposure interface
    RefreshString
    interface implements different language
    RouteAwareState<T extends StatefulWidget>
    RuRefreshString
    Russian
    SmartRefresher
    This is the most important component that provides drop-down refresh and up loading. RefreshController must not be null,Only one controller to one SmartRefresher
    SmartRefresherState
    SvRefreshString
    Swedish
    TwoLevelHeader
    this header help you implements twoLevel function easyily, the behaviour just like TaoBao,XieCheng(携程) App TwoLevel
    UkRefreshString
    WaterDropHeader
    QQ ios refresh header effect
    WaterDropMaterialHeader
    attach the waterdrop effect to MaterialClassicHeader

    Enums

    BezierCircleType
    BezierDismissType
    IconPosition
    direction that icon should place to the text
    LoadStatus
    footer state
    LoadStyle
    footer indicator display style
    RefreshStatus
    header state
    RefreshStyle
    header indicator display style
    TwoLevelDisplayAlignment

    Mixins

    IndicatorStateMixin<T extends StatefulWidget, V>
    mixin in IndicatorState,it will get position and remove when dispose,init mode state
    MyRouteAware

    Properties

    myRouteObserver MyRouteObserver<ModalRoute<void>>
    final

    Typedefs

    EmptyBuilder = Widget Function(EmptyConfig?)
    global default empty builder
    FooterBuilder = Widget Function(BuildContext context, LoadStatus? mode)
    custom footer builder,you can use second paramter to know what footerr state is
    HeaderBuilder = Widget Function(BuildContext context, RefreshStatus? mode)
    custom header builder,you can use second paramter to know what header state is
    IndicatorBuilder = Widget Function()
    global default indicator builder
    ModeChangeCallBack<T> = void Function(T? mode)
    OffsetCallBack = void Function(double offset)
    OnTwoLevel = void Function(bool isOpen)
    when viewport not full one page, for different state,whether it should follow the content
    OuterBuilder = Widget Function(Widget child)
    wrap child in outside,mostly use in add background color and padding
    RefresherBuilder = Widget Function(BuildContext context, RefreshPhysics physics)
    a builder for attaching refresh function with the physics
    ShouldFollowContent = bool Function(LoadStatus? status)
    when viewport not full one page, for different state,whether it should follow the content
    VoidFutureCallBack = Future<void> Function()