compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

Support constraint layout (and motionlayout) in Compose Multiplatform

Open yogurtearl opened this issue 3 years ago • 25 comments

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

yogurtearl avatar Jul 06 '21 19:07 yogurtearl

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).

igordmn avatar Jul 12 '21 18:07 igordmn

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)

igordmn avatar Jul 12 '21 18:07 igordmn

It is a recent addition, but MotionLayout does exist for Compose for Android.

yogurtearl avatar Jul 12 '21 22:07 yogurtearl

It is a recent addition, but MotionLayout does exist for Compose for Android.

Awesome!

Then it is worth to port MotionLayout to.

igordmn avatar Jul 13 '21 07:07 igordmn

Is there any news regarding this issue?

linde9821 avatar Nov 10 '21 17:11 linde9821

No news, sorry. It is not in our priority at the moment and in the near future

igordmn avatar Nov 10 '21 17:11 igordmn

alright thx for the update

linde9821 avatar Nov 12 '21 12:11 linde9821

+1 for this :)

TomislavMladenov avatar Dec 27 '21 19:12 TomislavMladenov

+1 for this :) the sooner the better.

xiaobo-lab avatar Feb 15 '22 03:02 xiaobo-lab

+1 for this :) the sooner the better.

wznshuai avatar Apr 07 '22 09:04 wznshuai

+1 here!

Diddielou avatar Oct 21 '22 13:10 Diddielou

+1

NickZt avatar Dec 29 '22 18:12 NickZt

+1 missing the CL adds extra unnecessary trouble when porting existing Android apps to desktop

AhmedMourad0 avatar Feb 03 '23 14:02 AhmedMourad0

+1

akelix avatar May 04 '23 09:05 akelix

+1

MakarenkoVlad avatar Jul 14 '23 16:07 MakarenkoVlad

+1

moten-07 avatar Aug 06 '23 05:08 moten-07

👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍

Ekt0s avatar Oct 12 '23 03:10 Ekt0s

+1

nowiwr01w avatar Dec 10 '23 13:12 nowiwr01w

+1

wagnod avatar Dec 10 '23 16:12 wagnod

+1

zengziming2023 avatar Dec 14 '23 14:12 zengziming2023

+1 We need ConstraintLayout !!!!

hehua2008 avatar Dec 19 '23 05:12 hehua2008

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")
}

nowiwr01w avatar Dec 19 '23 17:12 nowiwr01w

+1 for motion layout

rvenky125 avatar Apr 16 '24 05:04 rvenky125

I'm gonna add my +1 for motionlayout support too please!

creativedrewy avatar Apr 26 '24 17:04 creativedrewy

+1

encyclist avatar May 09 '24 02:05 encyclist

+1

minmax1993 avatar May 30 '24 03:05 minmax1993

+1

GJean avatar Jun 04 '24 20:06 GJean

+1

ArtyomZhukov avatar Jun 05 '24 05:06 ArtyomZhukov

+1

DevAlves1993 avatar Jun 06 '24 21:06 DevAlves1993

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

okushnikov avatar Jul 14 '24 14:07 okushnikov