body property

Widget body
final

The primary content of the scaffold.

Displayed below the app bar and behind the floatingActionButton and drawer. To avoid the body being resized to avoid the window padding (e.g., from the onscreen keyboard), see resizeToAvoidBottomPadding.

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. 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 ListView as the body of the scaffold. This is also a good choice for the case where your body is a scrollable list.

Implementation

final Widget body