Doc that SizedBox.expand can be used by Scaffold.body (#7141)

Closes https://github.com/flutter/flutter/issues/6907
This commit is contained in:
Seth Ladd
2017-01-05 15:18:40 -08:00
committed by GitHub
parent 207968ff79
commit 86ad51f1ec

View File

@@ -342,7 +342,8 @@ class Scaffold extends StatefulWidget {
/// The widget in the body of the scaffold is positioned at the top-left of
/// the available space between the app bar and the bottom of the scaffold. To
/// center this widget instead, consider putting it in a [Center] widget and
/// having that be the body.
/// having that be the body. To expand this widget instead, consider
/// putting it in a [SizedBox.expand].
///
/// If you have a column of widgets that should normally fit on the screen,
/// but may overflow and would in such cases need to scroll, consider using a