Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
35 lines (26 loc) · 1.01 KB

File metadata and controls

35 lines (26 loc) · 1.01 KB
Copy raw file
Download raw file
Outline
Edit and raw actions

flutter_refresh progress

https://blog.51cto.com/code/3034135 A new Flutter application. Flutter Debug和Release流畅度差好远!!!

2018-8-14

支持下拉刷新,上拉加载的关闭

支持自定义上拉加载控件,不写用一个默认的

使用和原生RefreshIndicate一样

基于 refreshIndicate改造

gif

使用:注意事项和官方一样,比如onrefresh要返回future; child:必须为scrollable

loadingBuilder:是加载更多的布局,不写使用默认

RefreshLayout(
     //是否下拉刷新
    canrefresh:canrefresh
    //是否滑倒底部加载
    canloading: canloading,
    onRefresh: (refresh) 
    {//true:下拉刷新 false:上拉加载},
    child: new ListView(children: _listBuilder(_counter) ,),
    loadingBuilder: 
        (BuildContext context) {
           return Padding(padding: EdgeInsets.all(15.0),child: Text('正在加载中...'),);
        }))
            
Morty Proxy This is a proxified and sanitized view of the page, visit original site.