Add download progress animations in SharedDecksDownloadScreen#9
Open
ColbyCabrera wants to merge 2 commits into
Open
Add download progress animations in SharedDecksDownloadScreen#9ColbyCabrera wants to merge 2 commits into
ColbyCabrera wants to merge 2 commits into
Conversation
- Implemented `animateFloatAsState` to smooth out transitions in the download progress indicator. - Configured the animation using a `SpringSpec` with low stiffness and a low bouncy damping ratio. - Updated `CircularProgressIndicator` to use the animated progress value instead of the raw percentage.
- Wrapped the download percentage text in `AnimatedContent` to animate transitions between value changes. - Defined a custom `transitionSpec` using a combination of fade and scale animations with specific `tween` durations. - Configured the animation to use a subtle scale effect (0.92x) for a smoother visual "pop" during updates.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request enhances the user experience of the shared deck download screen by introducing smooth animations for both the circular progress indicator and the percentage text. These changes make the download progress visually more appealing and responsive.
Animation Improvements:
animateFloatAsStatewith a spring animation for smoother progress updates.AnimatedContent, combining fade and scale effects for a subtle percentage update.The download percentage text tends to update every 2-3 seconds or so already, so the text animation isn't overbearing, though this is a matter of opinion/taste
26-05-27-14-19-44.1.mp4