From 14f486685e445e1468dc57e12088f39112218693 Mon Sep 17 00:00:00 2001 From: Hans Muller Date: Wed, 16 Jan 2019 08:35:51 -0800 Subject: [PATCH] Updated AlertDialog content doc (#26613) --- packages/flutter/lib/src/material/dialog.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/flutter/lib/src/material/dialog.dart b/packages/flutter/lib/src/material/dialog.dart index c3296d5a3b..bd2150e353 100644 --- a/packages/flutter/lib/src/material/dialog.dart +++ b/packages/flutter/lib/src/material/dialog.dart @@ -242,9 +242,10 @@ class AlertDialog extends StatelessWidget { /// The (optional) content of the dialog is displayed in the center of the /// dialog in a lighter font. /// - /// Typically, this is a [ListView] containing the contents of the dialog. - /// Using a [ListView] ensures that the contents can scroll if they are too - /// big to fit on the display. + /// Typically this is a [SingleChildScrollView] that contains the dialog's + /// message. As noted in the [AlertDialog] documentation, it's important + /// to use a [SingleChildScrollView] if there's any risk that the content + /// will not fit. final Widget content; /// Padding around the content.