Safe Area
This attribute is exclusive for iOS platform.
What is it?
Class that helps on your screen’s components area. The Safe Area
guarantees that the elements from the screen stay visible to the user.
Attribute | Type | Definition |
---|---|---|
top | Boolean | Enables a constraint of SafeArea only in top of the screen. |
bottom | Boolean | Enables a constraint de_SafeArea _ only in the bottom of the screen. |
leading | Boolean | Enables a constraint de_SafeArea _ only in the left side of the screen. |
trailing | Boolean | Enables a constraint_SafeArea _ only in the right side of the screen. |
How to use it?
child = Container(
children = listOf(
Text("Some Text")
)
),
safeArea = SafeArea(
top = true,
leading = true,
trailing = true,
bottom = true
)
)
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified July 1, 2021: refactor: adjust ordem pages inside API (#695) (fc266566)