From 2c75d89c9eaa2c9b35685d3c0a734979137870b1 Mon Sep 17 00:00:00 2001 From: snat-s <65375294+snat-s@users.noreply.github.com> Date: Wed, 27 Jul 2022 12:19:05 -0500 Subject: [PATCH] Added a clarification on scrollBehaviour in BoxScroll and ListView (#107738) --- packages/flutter/lib/src/widgets/scroll_view.dart | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/flutter/lib/src/widgets/scroll_view.dart b/packages/flutter/lib/src/widgets/scroll_view.dart index ff60f511f6..f67be84150 100644 --- a/packages/flutter/lib/src/widgets/scroll_view.dart +++ b/packages/flutter/lib/src/widgets/scroll_view.dart @@ -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