-
Notifications
You must be signed in to change notification settings - Fork 175
What's New in 1.0 (Compose)
Oscar Adame Vazquez edited this page May 20, 2022
·
11 revisions
ConstraintLayout-compose 1.0 provides an implementation of ConstraintLayout & MotionLayout in Compose.
Constraints can be created either via a Kotlin DSL (in modifiers or as a separate ConstraintSet), or via a JSON ConstraintSet.
Various examples can be found in this project
- Introduction to ConstraintLayout in Compose
- See the syntax for ConstraintLayout DSL here
- See the syntax for ConstraintLayout JSON here
- See the syntax for MotionLayout JSON here
- MotionLayout is Experimental
- Fixed #572: Vertical margin and gone margin of chains not applied
- Fixed Json ConstraintSets being parsed every time for each measure call
- androidx.constraintlayout.compose.layoutId
tag
parameter is now null by default, so it’s interchangeable with androidx.compose.ui.layout.layoutId
- Fixed: Not reflecting child size changes caused by recomposition
- Gone<->Visible components are now animated as expected
- Disabled an internal debugging flag that affected runtime performance
MotionLayout API is experimental and requires opt-in. See the Kotlin documentation to learn how to opt-in.
- MotionLayout #526: Possible crash when using compose 1.1.X
First stable release of the Compose version of the library.
MotionLayout API is now experimental and requires opt-in. See the Kotlin documentation to learn how to opt-in.