Hello :wave:, anyone here have idea if ConstraintL...
# multiplatform
k
Hello 👋, anyone here have idea if ConstraintLayout is available in CMP? at least for android and iOS or are there any alternative?
c
WDYM with
ComposeLayout
?
k
sorry, my mistake i meant constraintLayout,
c
no, as far as I know it’s Android only. Also there is #CJLTWPH7S for CMP related questions.
k
alright, thanks 🙂
c
as an alternative just use `Column`s and `Row`s for your layout 😉
k
yeah, that's what i am using actually but the hierarchy is getting big so i thought constraintLayout would make it cleaner 😅
👀 1
c
If you split up the composables into multiple reusable ones, it’s much easier to read than constraint layout code, IMO.
1
k
i see, well i never used Constraint Layout before, i just read about it that it improve the Layout for such case, but for now i will do it that way, splitting the layout, thanks for the hint 😄
👍🏼 1
s
Can't one use androidx.constraintlayout.compose.ConstraintLayout + ConstraintSet with compose just fine? Or am I mistaking?
e
androidx.constraintlayout.compose is not multiplatform, it depends on Android-only APIs
there are forks like https://github.com/Lavmee/constraintlayout-compose-multiplatform which replace those APIs. did you try to search for any?