androidx / constraintlayout

ConstraintLayout is an Android layout component which allows you to position and size widgets in a flexible way
Apache License 2.0
1.06k stars 177 forks source link

[Compose] Initial DSL for Transition #656

Closed oscar-ad closed 1 year ago

oscar-ad commented 1 year ago

Adds support to defining a MotionLayout Transition with a DSL.

Supports KeyAttributes, KeyPositions, KeyCycles (missing wave definitions) and OnSwipe.

See some simple examples in KeyAttributesDsl.kt, KeyPositionsDsl.kt, KeyCyclesDsl.kt.