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

Use slider or swipe gesture to control reveal animation #8

Closed
jtkeyva opened this issue Oct 23, 2022 · 2 comments
Closed

Use slider or swipe gesture to control reveal animation #8

jtkeyva opened this issue Oct 23, 2022 · 2 comments

Comments

@jtkeyva
Copy link

jtkeyva commented Oct 23, 2022

Is it possible to attach the reveal to a controller so that if you swipe or pull a slider it reveals? Like slide to the right to reveal and then slide to the left and it closes back up. Slide half way and it reveals half.
Thanks

@qwert2603
Copy link
Owner

Hi! Sorry for the late answer.
CircularRevealAnimation has parameter animation of type Animation<double>, and it's possible to use AlwaysStoppedAnimation with the required value to control the reveal state.
Also it's possible to use AnimationController and set it's value explicitly depending on the slider's value.

@jtkeyva
Copy link
Author

jtkeyva commented Jan 28, 2023

thank you :)

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

2 participants