Is there a nifty way to hook component sizes with ...
# compose-desktop
x
Is there a nifty way to hook component sizes with teh window size without using window.events.onResize and a mutable state of window size?
d
Modifier.fillMaxSize()
?
👍 1
Can even pass in a fraction if you want.
🙌 1
g
I've had some success using WithConstraints to decide component layout/visibility based on the window width, e.g. using WithConstraintsScope.maxWidth.