defaultLoadPrevProgressBuilder function
Implementation
Widget defaultLoadPrevProgressBuilder(
BuildContext context, RefreshStatus? mode) {
Widget body;
if (mode == RefreshStatus.idle) {
body = const Text("Pull up load prev msg");
} else if (mode == RefreshStatus.refreshing) {
body = const CupertinoActivityIndicator();
// body = const ListSkeleton(line: 2);
} else if (mode == RefreshStatus.failed) {
body = const Text("Load Failed!Click retry!");
} else if (mode == RefreshStatus.canRefresh) {
body = const Text("Release to load more");
} else {
body = const Text("No more Data");
}
if (mode == RefreshStatus.completed) {
return Container();
} else {
return RotatedBox(
quarterTurns: 2,
child: SizedBox(
height: 55.0,
child: Center(child: body),
),
);
}
}