Waqas Tahir

02/24/2023, 10:57 AM
What's the future plan for compose web , At the moment compose uses skia , It has a huge wasm file which takes some time to load on a device , Its a huge turn off for web development with compose ui elements , Will compose UI support html rendering like flutter does or any other plans ?...

Oleksandr Karpovich [JB]

02/24/2023, 11:18 AM
Compose for Web has HTML-like Composable API It doesn't require skiko, but it doesn't allow share the same UI code between different platforms. There is expect/actual Kotlin mechanism to achieve some code reusage, but still more code has to be written. There's no plan to render Compose UI (Compose Material, etc.) as html. What we may consider at some point is to not use skiko, but render using WebGL directly. No actual plan for now though

Big Chungus

02/24/2023, 1:24 PM
HTML CfW is great though. Think of it like vanilla react - it only allows you to manage your dom trees in a reactive way and does not provide any components/theming by itself. Then you add a component lib on top if you need it (like materialUI for react). For compose we have bootstrap-compose and #kmdc