Added a clarification on scrollBehaviour in BoxScroll and ListView (#107738)

This commit is contained in:
snat-s
2022-07-27 12:19:05 -05:00
committed by GitHub
parent fbb3036b73
commit 2c75d89c9e

View File

@@ -620,6 +620,14 @@ class CustomScrollView extends ScrollView {
/// A [ScrollView] that uses a single child layout model.
///
/// {@template flutter.widgets.BoxScroll.scrollBehaviour}
/// [ScrollView]s are often decorated with [Scrollbar]s and overscroll indicators,
/// which are managed by the inherited [ScrollBehavior]. Placing a
/// [ScrollConfiguration] above a ScrollView can modify these behaviors for that
/// ScrollView, or can be managed app-wide by providing a ScrollBehavior to
/// [MaterialApp.scrollBehavior] or [CupertinoApp.scrollBehavior].
/// {@endtemplate}
///
/// See also:
///
/// * [ListView], which is a [BoxScrollView] that uses a linear layout model.
@@ -1012,6 +1020,8 @@ abstract class BoxScrollView extends ScrollView {
/// ** See code in examples/api/lib/widgets/scroll_view/listview_select.1.dart **
/// {@end-tool}
///
/// {@macro flutter.widgets.BoxScroll.scrollBehaviour}
///
/// See also:
///
/// * [SingleChildScrollView], which is a scrollable widget that has a single