xSafeArea method
ScafArea`
Implementation
Widget xSafeArea({
/// Whether to avoid system intrusions on the left.
final bool left = true,
/// Whether to avoid system intrusions at the top of the screen, typically the
/// system status bar.
final bool top = true,
/// Whether to avoid system intrusions on the right.
final bool right = true,
/// Whether to avoid system intrusions on the bottom side of the screen.
final bool bottom = true,
/// This minimum padding to apply.
///
/// The greater of the minimum insets and the media padding will be applied.
final EdgeInsets minimum = EdgeInsets.zero,
/// Specifies whether the [SafeArea] should maintain the [viewPadding] instead
/// of the [padding] when consumed by the [viewInsets] of the current
/// context's [MediaQuery], defaults to false.
///
/// For example, if there is an onscreen keyboard displayed above the
/// SafeArea, the padding can be maintained below the obstruction rather than
/// being consumed. This can be helpful in cases where your layout contains
/// flexible , which could visibly move when opening a software
/// keyboard due to the change in the padding value. Setting this to true will
/// avoid the UI shift.
final bool maintainBottomViewPadding = false,
final Key key,
}) {
return SafeArea(
bottom: bottom,
key: key,
left: left,
maintainBottomViewPadding: maintainBottomViewPadding,
minimum: minimum,
right: right,
top: top,
child: this,
);
}