-
Notifications
You must be signed in to change notification settings - Fork 5k
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
[Crane] Use AnimatedContent to transition between content states. #843
Conversation
riggaroo
commented
Jun 13, 2022
Before | After |
---|---|
https://user-images.githubusercontent.com/9973046/173384749-7729f3e0-08ad-427f-b0a1-fbebc01309a0.mp4 | https://user-images.githubusercontent.com/9973046/173383605-d17c5339-0453-49b6-b066-ff5bbad91bfe.mp4 |
Crane/app/src/main/java/androidx/compose/samples/crane/home/CraneHome.kt
Outdated
Show resolved
Hide resolved
Crane/app/src/main/java/androidx/compose/samples/crane/home/CraneHome.kt
Outdated
Show resolved
Hide resolved
slideOutOfContainer( | ||
towards = direction, | ||
animationSpec = tween(600) | ||
) using SizeTransform(clip = false, sizeAnimationSpec = { initialSize, targetSize -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting nit: I'd push SizeTransform into a new line and split out its params into individual rows, just for readability
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When using the notion with
it can't be split onto a new line as its actually an argument
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with minor nit comments, feel free to not resolve them :)