SafeArea constructor
SafeArea({})
Creates a safe-area wrapper with optional side controls.
Implementation
SafeArea({
Object? child,
List<Object?> children = const [],
bool top = true,
bool right = true,
bool bottom = true,
bool left = true,
Object minimum = 0,
String? className,
Map<String, Object?> props = const {},
Map<String, Object?> style = const {},
DartStyle? dartStyle,
}) : super(
'div',
props: mergeComponentProps(
props,
className: className,
dartStyle: DartStyle(
padding: EdgeInsets.only(
top: top ? _safeInset('top', minimum) : minimum,
right: right ? _safeInset('right', minimum) : minimum,
bottom: bottom ? _safeInset('bottom', minimum) : minimum,
left: left ? _safeInset('left', minimum) : minimum,
),
).merge(dartStyle),
style: style,
),
children: normalizeChildren(child, children),
);