mgrazianodecastro
with(LocalDensity.current) { // code here, Dp interface will have the extension .toPx() }
maiatoday
@Composable fun Dp.toPx() = with(LocalDensity.current) { this@toPx.toPx() } @Composable fun Int.toDp() = with(LocalDensity.current) { this@toDp.toDp() }
A modern programming language that makes developers happier.