⚠️ You are viewing documentation for version: v1.5
Beagle v1.5 is no longer actively maintained. The documented version you are viewing may contain deprecated functionality. For up-to-date documentation, see the latest version .
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 February 11, 2021: create content (#298) (43225e15)