Giter Site home page Giter Site logo

while1true / flutter_refresh Goto Github PK

View Code? Open in Web Editor NEW
52.0 1.0 18.0 677 KB

flutter refresh 上拉刷新 下拉加载 进度条

License: MIT License

Java 1.35% Objective-C 2.75% Dart 95.89%
flutter refresh refreshlayout refreshindicator flutter-progress

flutter_refresh's Introduction

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('正在加载中...'),);
        }))
            

flutter_refresh's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

flutter_refresh's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.