Safe Area


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.

AttributeTypeDefinition
topBooleanEnables a constraint of SafeArea only in top of the screen.
bottomBooleanEnables a constraint de_SafeArea_ only in the bottom of the screen.
leadingBooleanEnables a constraint de_SafeArea_ only in the left side of the screen.
trailingBooleanEnables 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
        )
    )