Hi, anyone know how to get display size in compose...
# compose
j
Hi, anyone know how to get display size in compose multiplatform?
That has code to get the window size (not exposed in the library API). Usually that's what you want and not the physical display size since there's no guarantee you are rendering anywhere near that. Although if that's actually what you want then this isn't helpful
j
is there any official code example?
i've tried it it's not working for js
j
That would presumably be https://github.com/chrisbanes/material3-windowsizeclass-multiplatform/issues/8. Perhaps you could contribute that support!
j
For Web code has been merged to main but not deployed a new release yet
j
Sounds like you could comment on that issue asking if a release will be made soon or if there's anything holding it up
j
I've asked on a discussion