Skip to content

Commit 2c75d89

Browse files
authored
Added a clarification on scrollBehaviour in BoxScroll and ListView (#107738)
1 parent fbb3036 commit 2c75d89

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/flutter/lib/src/widgets/scroll_view.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,14 @@ class CustomScrollView extends ScrollView {
620620

621621
/// A [ScrollView] that uses a single child layout model.
622622
///
623+
/// {@template flutter.widgets.BoxScroll.scrollBehaviour}
624+
/// [ScrollView]s are often decorated with [Scrollbar]s and overscroll indicators,
625+
/// which are managed by the inherited [ScrollBehavior]. Placing a
626+
/// [ScrollConfiguration] above a ScrollView can modify these behaviors for that
627+
/// ScrollView, or can be managed app-wide by providing a ScrollBehavior to
628+
/// [MaterialApp.scrollBehavior] or [CupertinoApp.scrollBehavior].
629+
/// {@endtemplate}
630+
///
623631
/// See also:
624632
///
625633
/// * [ListView], which is a [BoxScrollView] that uses a linear layout model.
@@ -1012,6 +1020,8 @@ abstract class BoxScrollView extends ScrollView {
10121020
/// ** See code in examples/api/lib/widgets/scroll_view/listview_select.1.dart **
10131021
/// {@end-tool}
10141022
///
1023+
/// {@macro flutter.widgets.BoxScroll.scrollBehaviour}
1024+
///
10151025
/// See also:
10161026
///
10171027
/// * [SingleChildScrollView], which is a scrollable widget that has a single

0 commit comments

Comments
 (0)