refreshWidget method
Implementation
Widget refreshWidget(BuildContext ctx, Widget child) {
return child;
// return SmartRefresher(
// key: smartRefresherKey,
// enablePullDown: true,
// enablePullUp: true,
// header: WaterDropHeader(),
// footer: CustomFooter(
// builder: (BuildContext context, LoadStatus? mode) {
// Widget body;
// if (mode == LoadStatus.idle) {
// body = Text("pull up load");
// } else if (mode == LoadStatus.loading) {
// body = CupertinoActivityIndicator();
// } else if (mode == LoadStatus.failed) {
// body = Text("Load Failed!Click retry!");
// } else if (mode == LoadStatus.canLoading) {
// body = Text("release to load more");
// } else {
// body = Text("No more Data");
// }
// return Container(
// height: 55.0,
// child: Center(child: body),
// );
// },
// ),
// controller: refreshController,
// onRefresh: _onRefresh,
// onLoading: _onLoading,
// child: child,
// );
}