https://kotlinlang.org logo
#compose-web
Title
# compose-web
t

Tanish Azad

03/30/2024, 9:00 AM
How do i make a responsive kotlin/wasm website all the examples are not responsive
j

John Smith

03/30/2024, 10:06 AM
Not sure if there is a better way for compose multiplatform
t

Tanish Azad

03/30/2024, 10:50 AM
How did u do that? from what I can see wasmJs doesn't have most of the APIs used in the example, do u have the code can you share that?
j

John Smith

03/30/2024, 11:03 AM
I mean if you have a compose multiplatform app, majority of them should be there. You won't have Activity and other Android-specific classes, but the rest should be there.
t

Tanish Azad

03/30/2024, 11:12 AM
No there isn't, I can't find a way to get the window width(i.e. no WindowSizeClass)
j

John Smith

03/30/2024, 11:46 AM
Right,
WindowSizeClass
is available via material3 library, afaik but the example with
BoxWithConstraints
should work
👍 1
11 Views