Skip to main content

SafeArea

Stac SafeArea allows you to build the Flutter SafeArea widget using JSON. To know more about the SafeArea widget in Flutter, refer to the official documentation.

Properties​

PropertyTypeDescription
childMap<String, dynamic>The child widget of the SafeArea.
leftboolWhether to avoid system intrusions on the left.
topboolWhether to avoid system intrusions at the top of the screen, typically the system status bar.
rightboolWhether to avoid system intrusions on the right.
bottomboolWhether to avoid system intrusions on the bottom side of the screen.
minimumStacEdgeInsetsThis minimum padding to apply.
maintainBottomViewPaddingboolSpecifies whether the SafeArea should maintain the bottom MediaQueryData.viewPadding instead of the bottom MediaQueryData.padding, defaults to false.

Example JSON​

{
"type": "safeArea",
"child": {
"type": "text",
"data": "Hello, World!",
"style": {
"color": "#FFFFFF",
"fontSize": 24.0
}
}
}