Hi Team , Is it possible to use ConstraintLayout i...
# compose
b
Hi Team , Is it possible to use ConstraintLayout in Compose Multiplatofrm
maybe 1
j
It should be possible (in theory) to use it on the JVM with Compose UI for Desktop but it will not work for iOS or web.
The constraint solver that sits behind ConstraintLayout is written in Java, so the JVM and Android are the only places it can run.
I'm not aware of anyone that is publishing the Compose-based constraint API against JetBrains' Compose multiplatform artifacts such that it is available in JVM-based Compose UI applications.
s
Is there anything very Java specific about the solver? Or could it be reimplemented in Kotlin? Seems like a low-hanging fruit (though Compose makes ConstraintLayout mostly unnecessary, but it still has some useful applications)
j
Nope. Nothing!
Just found this https://github.com/Lavmee/constraintlayout-compose-multiplatform. Maybe track that person down and help out!
gratitude thank you 1