Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change predictive back NavHost implementation #105

Merged
merged 3 commits into from
Nov 12, 2024

Conversation

trambui09
Copy link
Contributor

Replace the fadeOut with the scaleOut transition into the NavHost and update some library dependencies

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Copy link
Contributor

@ashnohe ashnohe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, with one comment

scaleOut(targetScale = 0.9F) + fadeOut()
scaleOut(
targetScale = 0.9f,
transformOrigin = TransformOrigin(pivotFractionX = 0.5f, pivotFractionY = 0.5f),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does transformOrigin change the animation? I don't see a difference in the animation if I leave it out.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default value for TransformOrigin is at the center (0.5f,0.5f). In this case, since that's our desired effect, we could leave it out, but I think leaving it in shows that it can changed to a different point.

@trambui09 trambui09 merged commit 67d823a into android:main Nov 12, 2024
2 checks passed
@trambui09 trambui09 deleted the pb-navhost branch November 12, 2024 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants