body property

Widget? body
final

The primary content of the scaffold.

Displayed below the headerBar, above the bottom of the ambient MediaQuery's MediaQueryData.viewInsets, and behind the drawer. If resizeToAvoidBottomInset is false then the body is not resized when the onscreen keyboard appears, i.e. it is not inset by viewInsets.bottom.

The widget in the body of the scaffold is positioned at the top-left of the available space between the header 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.

Implementation

final Widget? body;