safeAreaConfig property

SafeAreaConfig safeAreaConfig
final

Apply necessary top, bottom and sides (left and right) padding to the panel to avoid OS intrusions like notch, status bar and nav-bar.

This is much like SafeArea. This does NOT apply padding to the PanelContent.bodyContent. This allows us for example, to have the panel avoid intrusions while still allowing bodyContent to occupy whole available space. The BackdropConfig's shadow is also not affected by this. So, you always get full-screen shadow.

This can be used on any type of panel.

Default : SafeAreaConfig.all.

Implementation

final SafeAreaConfig safeAreaConfig;