buildRefreshableScrollView static method

Widget buildRefreshableScrollView(
  1. BuildContext context, {
  2. Key? key,
  3. Widget? header,
  4. required List<Widget> slivers,
  5. ScrollController? controller,
  6. Future<void> onRefresh()?,
  7. Clip clipBehavior = Clip.hardEdge,
  8. ScrollPhysics? physics,
  9. bool reverse = false,
  10. ScrollBehavior? scrollBehavior,
  11. bool shrinkWrap = false,
  12. Color? color,
  13. Color? refreshControlBackgroundColor,
  14. Color? refreshIndicatorBackgroundColor,
  15. 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,
  );
}