size

fun Modifier.size(width: UiDp, height: UiDp): Modifier(source)

Requests exact width and height for the modified node.

Receiver

modifier chain to extend

Return

a new modifier chain

Parameters

width

requested width in dp

height

requested height in dp