Skip to content

Pull Down to Refresh & Pull Up to Load More for Flutter

License

Notifications You must be signed in to change notification settings

mohammadaminha/pdrpulm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pdrpulm (Pull Down to Refresh & Pull Up to Load More)

A widget that supports "Pull Down to Refresh & Pull Up to Load More" idiom. Google Material never have "Pull Up to Load More" so implement as a package.

Getting Started

Widget build(BuildContext context) {
    return new ScrollIndicator(
        onLoadMore: onLoadMore,
        child: new ListView.builder(
            itemCount: itemCount,
            itemBuilder: (BuildContext context, int index) {
              return new Container(
                height: 150.0,
                decoration: new BoxDecoration(border: new Border.all()),
                child: new Indicator(index.toString()),
              );
            }));
  }

Full example (fetch stock via HTTP) in example folder.

Roadmap

add custom indicator when refresh or loading more

About

Pull Down to Refresh & Pull Up to Load More for Flutter

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 96.4%
  • Objective-C 2.4%
  • Java 1.2%