buildRefreshableScrollView static method
Widget
buildRefreshableScrollView(
- BuildContext context, {
- Key? key,
- Widget? header,
- required List<
Widget> slivers, - ScrollController? controller,
- Future<
void> onRefresh()?, - Clip clipBehavior = Clip.hardEdge,
- ScrollPhysics? physics,
- bool reverse = false,
- ScrollBehavior? scrollBehavior,
- bool shrinkWrap = false,
- Color? color,
- Color? refreshControlBackgroundColor,
- Color? refreshIndicatorBackgroundColor,
- EdgeInsets padding = EdgeInsets.zero,
Constructs a platform-specific refreshable scroll view.
Deprecated: Use AdaptiveRefreshableScrollView instead.
Implementation
static Widget buildRefreshableScrollView(
BuildContext context, {
Key? key,
Widget? header,
required List<Widget> slivers,
ScrollController? controller,
Future<void> Function()? onRefresh,
Clip clipBehavior = Clip.hardEdge,
ScrollPhysics? physics,
bool reverse = false,
ScrollBehavior? scrollBehavior,
bool shrinkWrap = false,
Color? color,
/// The color of the refresh section background. Only for iOS.
Color? refreshControlBackgroundColor,
/// The background color of the refresh indicator. Only for Android.
Color? refreshIndicatorBackgroundColor,
EdgeInsets padding = EdgeInsets.zero,
}) {
return AdaptiveRefreshableScrollViewFactory(Theme.of(context).platform).build(
context,
key: key,
header: header,
slivers: slivers,
controller: controller,
onRefresh: onRefresh,
clipBehavior: clipBehavior,
physics: physics,
reverse: reverse,
scrollBehavior: scrollBehavior,
shrinkWrap: shrinkWrap,
color: color,
refreshControlBackgroundColor: refreshControlBackgroundColor,
padding: padding,
);
}