Skip to content

Feat: Improve player UI transition animation#177

Merged
theovilardo merged 1 commit intomasterfrom
feature/gradual-player-ui
Oct 1, 2025
Merged

Feat: Improve player UI transition animation#177
theovilardo merged 1 commit intomasterfrom
feature/gradual-player-ui

Conversation

@theovilardo
Copy link
Owner

The previous implementation of the player expansion animation waited for the background to fully expand before showing the full player UI. This resulted in a disjointed user experience.

This change refactors the animation logic in UnifiedPlayerSheet.kt to make the full player UI appear and disappear gradually, in sync with the expansion and contraction of the player sheet.

  • Replaced Animatable states for alpha and translation with derivedStateOf.
  • The full player's UI alpha and translation are now calculated directly from the playerContentExpansionFraction.
  • This ensures a smooth and continuous transition, improving the overall user experience.
The previous implementation of the player expansion animation waited for the background to fully expand before showing the full player UI. This resulted in a disjointed user experience.

This change refactors the animation logic in `UnifiedPlayerSheet.kt` to make the full player UI appear and disappear gradually, in sync with the expansion and contraction of the player sheet.

- Replaced `Animatable` states for alpha and translation with `derivedStateOf`.
- The full player's UI alpha and translation are now calculated directly from the `playerContentExpansionFraction`.
- This ensures a smooth and continuous transition, improving the overall user experience.
@theovilardo theovilardo merged commit 4f3f7a5 into master Oct 1, 2025
@theovilardo theovilardo deleted the feature/gradual-player-ui branch October 1, 2025 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant