corner Radius
Appends one rounded radius for every logical corner.
Receiver
modifier chain to extend
Return
a new modifier chain
Parameters
radius
corner radius in dp
Appends separate rounded radii for the top and bottom corner pairs.
Receiver
modifier chain to extend
Return
a new modifier chain
Parameters
top
radius for top-start and top-end
bottom
radius for bottom-start and bottom-end
fun Modifier.cornerRadius(topStart: UiDp = UiDp.Zero, topEnd: UiDp = UiDp.Zero, bottomEnd: UiDp = UiDp.Zero, bottomStart: UiDp = UiDp.Zero): Modifier(source)
Appends independently sized rounded logical corners.
Corner-radius and general shape elements are mutually overriding in chain order.
Receiver
modifier chain to extend
Return
a new modifier chain
Parameters
top Start
top-start radius in dp
top End
top-end radius in dp
bottom End
bottom-end radius in dp
bottom Start
bottom-start radius in dp