Join Slack
Powered by
Is there a nifty way to hook component sizes with ...
# compose-desktop
x
xetra11
12/16/2020, 11:22 PM
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
Dominaezzz
12/16/2020, 11:28 PM
Modifier.fillMaxSize()
?
👍 1
Dominaezzz
12/16/2020, 11:42 PM
Can even pass in a fraction if you want.
🙌 1
g
Greg Steckman
12/25/2020, 8:01 PM
I've had some success using WithConstraints to decide component layout/visibility based on the window width, e.g. using WithConstraintsScope.maxWidth.
2
Views
Open in Slack
Previous
Next