Dazai
05/09/2022, 3:14 AMval windowSize: State<DpSize> = windowSize().map {
with(LocalDensity.current) {
DpSize(it.first.toDp(), it.second.toDp())
}
}.collectAsState(DpSize(800.dp, 600.dp))
ephemient
05/09/2022, 3:36 AMwindowState()
returns a Flow
? (I would consider flow functions separate from collections functions, even if they have the same names)ephemient
05/09/2022, 3:42 AM@Composable
functions within flowsephemient
05/09/2022, 3:43 AM