Mehdi Haghgoo
05/18/2022, 7:15 AMwith(LocalDensity.current){sizeDp.toPx()}
really do?Filip Wiesner
05/18/2022, 7:18 AMMehdi Haghgoo
05/18/2022, 7:36 AMwith(){}
?Filip Wiesner
05/18/2022, 7:42 AMDensity
context (this is Density
) to access this conversion extension function. You could also do LocalDensity.current.run { sizeDp.toPx() }
Filip Wiesner
05/18/2022, 7:47 AMDensity
interface so it has two receivers (contexts). One is Density
and one is Dp
defined on the function