defaultLoadMoreProgressBuilder function

Widget defaultLoadMoreProgressBuilder(
  1. BuildContext context,
  2. LoadStatus? mode
)

Implementation

Widget defaultLoadMoreProgressBuilder(BuildContext context, LoadStatus? mode) {
  Widget body;
  if (mode == LoadStatus.idle) {
    body = const Text("Pull down to load more message");
  } else if (mode == LoadStatus.loading) {
    body = const CupertinoActivityIndicator();
  } else if (mode == LoadStatus.failed) {
    body = const Text("Load Failed!Click retry!");
  } else if (mode == LoadStatus.canLoading) {
    body = const Text("Release to load more");
  } else {
    body = const Text("No more Data");
  }
  return SizedBox(
    height: 55.0,
    child: Center(child: body),
  );
}