PaginationScrollScreen constructor
const
PaginationScrollScreen({
- Key? key,
- required Widget showWidget,
- required ScrollController scrollController,
- required Function loadingFunction,
- Widget loadingWidget = const CupertinoActivityIndicator(),
- Widget errorWidget = const Text("There is an error"),
- Axis scrollDirection = Axis.vertical,
- double paddingTop = 20,
- double paddingBottom = 20,
- double paddingStart = 16,
- double paddingEnd = 16,
Implementation
const PaginationScrollScreen({
Key? key,
required this.showWidget,
required this.scrollController,
required this.loadingFunction,
this.loadingWidget = const CupertinoActivityIndicator(),
this.errorWidget = const Text("There is an error"),
this.scrollDirection = Axis.vertical,
this.paddingTop = 20,
this.paddingBottom = 20,
this.paddingStart = 16,
this.paddingEnd = 16,
}) : super(key: key);