This repository was archived by the owner on Dec 27, 2024. It is now read-only.
-
Couldn't load subscription status.
- Fork 172
What's New in 1.1 (Compose)
Oscar Adame Vazquez edited this page May 20, 2022
·
10 revisions
ConstraintLayout-compose 1.1 focuses on bringing more MotionLayout features 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
- Limited support for
onSwipe, drive the animation with swipes/dragging - Added
rememberMotionLayoutState. When passed to a MotionLayout Composable, it may be used to animate the internal progress value and observe changes to it (within a Composable scope) made byonSwipe - Support for stagger, easing and quantized movements
- Updated internals to better handle recomposition
- Fixed MotionLayout laying out different when using a debugging flag
- Minor performance improvements
- When using
onSwipeall drag events are consumed (i.e:onSwipewon’t work well with LazyList) - MotionLayout #526: Possible crashes when using compose 1.1.X