Flutter : News App Workshop #part7 Push to refresh

https://pub.dev/packages/pull_to_refresh/install

pubspec.yaml

pull_to_refresh: ^2.0.0

NewsPage.dart

add RefreshController

 RefreshController _refreshController = RefreshController(initialRefresh: false);

add SmartRefresher below ListView

SmartRefresher(
            enablePullDown: true,
            enablePullUp: true,
            controller: _refreshController,
            child:
..
..
)

(Visited 18 times, 1 visits today)
Spread the love
Published
Categorized as Flutter