diff --git a/packages/flutter/lib/src/widgets/scroll_view.dart b/packages/flutter/lib/src/widgets/scroll_view.dart index 85bb277074..32d9ba2983 100644 --- a/packages/flutter/lib/src/widgets/scroll_view.dart +++ b/packages/flutter/lib/src/widgets/scroll_view.dart @@ -471,6 +471,10 @@ abstract class BoxScrollView extends ScrollView { /// To control the initial scroll offset of the scroll view, provide a /// [controller] with its [ScrollController.initialScrollOffset] property set. /// +/// By default, [ListView] will automatically pad the list's scrollable +/// extremities to avoid partial obstructions indicated by [MediaQuery]'s +/// padding. To avoid this behavior, override with a zero [padding] property. +/// /// ## Sample code /// /// An infinite list of children: @@ -515,9 +519,9 @@ abstract class BoxScrollView extends ScrollView { /// [CustomScrollView.slivers] property instead of the list itself, and having /// the [SliverList] instead be a child of the [SliverPadding]. /// -/// By default, [ListView] will automatically pad the list's scrollable -/// extremities to avoid partial obstructions indicated by [MediaQuery]'s -/// padding. To avoid this behavior, override with a zero [padding] property. +/// [CustomScrollView]s don't automatically avoid obstructions from [MediaQuery] +/// like [ListView]s do. To reproduce the behavior, wrap the slivers in +/// [SliverSafeArea]s. /// /// Once code has been ported to use [CustomScrollView], other slivers, such as /// [SliverGrid] or [SliverAppBar], can be put in the [CustomScrollView.slivers]