Closed arkivanov closed 2 months ago
The changes enhance the DefaultStackAnimation
class by adding a conditional check for single-item stacks, refining the animation state update logic. Additionally, a new test case is introduced in PredictiveBackGestureTest
to validate the behavior of stack animations during predictive back gestures, ensuring that previous children do not animate unexpectedly after a pop operation.
Files | Change Summary |
---|---|
extensions-compose-experimental/src/commonMain/kotlin/com/arkivanov/decompose/extensions/compose/experimental/stack/animation/DefaultStackAnimation.kt | Enhanced logic in DefaultStackAnimation to include a condition for single-item stacks, improving animation state updates. |
extensions-compose-experimental/src/jvmTest/kotlin/com/arkivanov/decompose/extensions/compose/experimental/stack/animation/PredictiveBackGestureTest.kt | Added a new test case in PredictiveBackGestureTest to ensure the previous child does not animate after a pop operation when a predictive back gesture is completed. |
Objective | Addressed | Explanation |
---|---|---|
Duplicated predictive back animation with new Experimental Animation API (#772) | ✅ |
🐰 In the stack where children play,
A single hop, they sway away.
With gestures clear, no dance in vain,
Animation flows, no need to feign.
Hops are smooth, the path is bright,
In joyful leaps, we find delight! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Fixes #772.
Summary by CodeRabbit
New Features
Tests