compose-multiplatform
compose-multiplatform copied to clipboard
Support constraint layout (and motionlayout) in Compose Multiplatform
Right now the constraintlayout-compose
artifact is an aar
.
This means we can't use it in Compose for Desktop.
Would be good to move all the android stuff to interfaces that can be eventually be abstracted with expect
/actual
.
Where should a Compose for Desktop version of constraint-layout live? in this repo? in the constraintlayout repo? in a new third repo?
Wasn't sure if I should file this here or at https://github.com/androidx/constraintlayout/issues
ConstraintLayout is a good candidate to make it available in a common code, and many people in the Slack channel asked about this.
But currently we don't have any plans how, when and who will do this (Google, JetBrains, or maybe third-party developers).
Not sure about MotionLayout. Compose has powerfull tools to animate any value/attribute (by the way, Compose for Android doesn't support MotionLayout too, if I am not mistaken)
It is a recent addition, but MotionLayout does exist for Compose for Android.
It is a recent addition, but MotionLayout does exist for Compose for Android.
Awesome!
Then it is worth to port MotionLayout to.
Is there any news regarding this issue?
No news, sorry. It is not in our priority at the moment and in the near future
alright thx for the update
+1 for this :)
+1 for this :) the sooner the better.
+1 for this :) the sooner the better.
+1 here!
+1
+1 missing the CL adds extra unnecessary trouble when porting existing Android apps to desktop
+1
+1
+1
👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍
+1
+1
+1
+1 We need ConstraintLayout !!!!
Now we can use ConstraintLayout with Compose Multiplatform for Web with K/Wasm, thanks to this great man
Check supported platforms here or just add dependency in commonMain
commonMain.dependencies {
/// ....
implementation("tech.annexflow.compose:constraintlayout-compose-multiplatform:0.3.0-alpha01")
}
+1 for motion layout
I'm gonna add my +1 for motionlayout support too please!
+1
+1
+1
+1
+1
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.