Skip to content

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

New in Compose 1.0.0

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.

New in Compose 1.0.1

ConstraintLayout

  • 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

MotionLayout

  • Fixed: Not reflecting child size changes cause 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.

Known Issues

  • MotionLayout #526: Possible crash when using compose 1.1.X