avoidStatusBar property

bool avoidStatusBar
final

If true, adds the top padding returned by MediaQuery.of(context).viewPadding.top to the padding when taking up the full screen.

This can be used to easily avoid the content of the sheet from being under the status bar, which is especially useful when having a header.

Implementation

final bool avoidStatusBar;