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

Add hero animation support #58

Open
speshiou opened this issue Apr 16, 2024 · 2 comments
Open

Add hero animation support #58

speshiou opened this issue Apr 16, 2024 · 2 comments

Comments

@speshiou
Copy link

Describe the Feature

To improve the user experience, adding support for hero animation can be beneficial.
I'm not sure if this feature already exists. However, I couldn't find any reference to this capability in the docs.

Suggested Solution

To incorporate hero animations, the two widgets in the different routes should be extended to the Hero widget with the corresponding tag. This can be achieved by:

  • Adding a tag property to the showImageViewer
  • Wrapping the image viewer with a Hero widget if the tag is provided.

Other Information

For more info, please refer to the official docs:
https://docs.flutter.dev/ui/animations/hero-animations

@jfahrenkrug
Copy link
Collaborator

@speshiou Thank you for the suggestion. I'll take a look, but it will probably take a bit for me to get around to it. If you want to provide some sample code or even a PR: That would be great :)

@amdkholil
Copy link

Hi @jfahrenkrug

maybe this link can help you
https://docs.flutter.dev/ui/animations/hero-animations

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

No branches or pull requests

3 participants