flutter refresh 上拉刷新 下拉加载 进度条
Dart Objective-C Java
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
android Initial commit Jun 2, 2018
ios Initial commit Jun 2, 2018
lib Update Progress.dart Jun 13, 2018
test Initial commit Jun 2, 2018
.gitignore Initial commit Jun 2, 2018
.metadata Initial commit Jun 2, 2018
2018-06-02-15-14-48.gif Initial commit Jun 2, 2018
README.md Update README.md Jun 4, 2018
flutter_refresh.iml Initial commit Jun 2, 2018
flutter_refresh_android.iml Initial commit Jun 2, 2018
pubspec.lock Initial commit Jun 2, 2018
pubspec.yaml

README.md

flutter_refresh progress

A new Flutter application.

基于 refreshIndicate改造

gif gif看起来很快 2018-06-04-17-42-35.gif

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

RefreshLayout(
    //是否滑倒底部加载
    canloading: canloading,
    onRefresh: (refresh) {
     //true:下拉刷新 false:上拉加载
                },
    child: new ListView(children: _listBuilder(_counter) ,)))
            

progress使用


## 大小确定 radius=(宽度-gap*(count+1))/(2*count)   gap=radius/2
 const MyProgress({@required this.size, this.milliseconds: 300, this.color: Colors
      .green, this.count: 4});

child: new MyProgress(size: new Size(100.0, 20.0))