Fix constructor doc for ScrollView.primary (#100935)

This commit is contained in:
Michael Goderbauer 2022-03-30 10:21:31 -07:00 committed by GitHub
parent a171f3069a
commit 0ff8030df4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,11 @@ enum ScrollViewKeyboardDismissBehavior {
abstract class ScrollView extends StatelessWidget { abstract class ScrollView extends StatelessWidget {
/// Creates a widget that scrolls. /// 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. /// If the [shrinkWrap] argument is true, the [center] argument must be null.
/// ///