loloof64
@Composable MyComposable(size: Dp) { // how to get size in px ? }
withDensity
André Kindwall
@Composable fun MyComposable(size: Dp) { with(DensityAmbient.current) { size.toPx() } }
A modern programming language that makes developers happier.