Cristian Rosa
09/22/2021, 12:13 AMolonho
09/22/2021, 5:15 AMCristian Rosa
09/22/2021, 9:22 AMLaunchedEffect(state) {
snapshotFlow { state.size }
.onEach(::onWindowResize)
.launchIn(this)
private fun onWindowResize(size: WindowSize) {
println("onWindowResize $size")
}
but then…
how to stop (don’t allow) to windows be resized only if some condition are matched?
My Goal ideally would be:
• Compose start (at minimum size possible)
• Allow resize only to higher value
• Allow future resize down but only until “minimum values” are reached again