From 0ff8030df48ff4e8231aa0a855f6049d9963fb59 Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Wed, 30 Mar 2022 10:21:31 -0700 Subject: [PATCH] Fix constructor doc for ScrollView.primary (#100935) --- packages/flutter/lib/src/widgets/scroll_view.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/flutter/lib/src/widgets/scroll_view.dart b/packages/flutter/lib/src/widgets/scroll_view.dart index 887c2cc7da..fe4c993f24 100644 --- a/packages/flutter/lib/src/widgets/scroll_view.dart +++ b/packages/flutter/lib/src/widgets/scroll_view.dart @@ -71,7 +71,11 @@ enum ScrollViewKeyboardDismissBehavior { abstract class ScrollView extends StatelessWidget { /// Creates a widget that scrolls. /// - /// If the [primary] argument is true, the [controller] must be null. + /// The [ScrollView.primary] argument defaults to true for vertical + /// scroll views if no [controller] has been provided. The [controller] argument + /// must be null if [primary] is explicitly set to true. If [primary] is true, + /// the nearest [PrimaryScrollController] surrounding the widget is attached + /// to this scroll view. /// /// If the [shrinkWrap] argument is true, the [center] argument must be null. ///