safeArea property

OverlaySafeArea safeArea
final

The safe area for the overlay.

It can be used to avoid the status bar, app bar, and bottom navigation bar.

Example:

context.show(
 (controller) => Padding(
   padding: controller.safeArea.insets,
   child: const Text('Hello'),
 ),
);

Implementation

final OverlaySafeArea safeArea;