extendBody property

bool? extendBody
final

If true, and bottomNavigationBar or persistentFooterButtons is specified, then the body extends to the bottom of the Scaffold, instead of only extending to the top of the bottomNavigationBar or the persistentFooterButtons.

If true, a MediaQuery widget whose bottom padding matches the height of the bottomNavigationBar will be added above the scaffold's body.

This property is often useful when the bottomNavigationBar has a non-rectangular shape, like CircularNotchedRectangle, which adds a FloatingActionButton sized notch to the top edge of the bar. In this case specifying extendBody: true ensures that scaffold's body will be visible through the bottom navigation bar's notch.

See also:

Implementation

final bool? extendBody;