8000 GitHub - crazecoder/material_load_scrollview
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

crazecoder/material_load_scrollview

Repository files navigation

material_load_scrollview

pub package

A widget that make the ScrollView to be push to load data,and click to refresh data,support custom footer,Theoretically compatible with all Scrollable Widgets.

Screenshot

Getting Started

In your pubspec.yaml:

dependencies:
  material_load_scrollview: lastVersion
import 'package:material_load_scrollview/material_load_scrollview.dart';
MaterialLoadScrollView(
          key: _key, //necessary for resetLoadStatus
          onRefresh: () {
          },
          onLoadMore: () {
          },
          child: ListView.builder(
            controller: ScrollController(), //necessary for scroll to top when onRefresh
            itemCount: _page * _itemCount,
            itemBuilder: (_, _i) => Container(
                  margin: EdgeInsets.only(bottom: 8.0),
                  color: Colors.white,
                  padding: EdgeInsets.all(8.0),
                  child: Text("$_i"),
                ),
          ),
        );

_key.currentState.reset();

Thanks

QuirijnGB / lazy-load-scrollview

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0