Fix ListView dartdoc where a paragraph doesn't flow with the section heading and the other paragraphs in the section (#18430)

This commit is contained in:
xster
2018-06-13 12:37:51 -07:00
committed by GitHub
parent 5ed029059e
commit 210e2fa333

View File

@@ -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]