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

Tapping animation can be inconsistent #1

Open
mintcollege opened this issue Mar 22, 2023 · 0 comments
Open

Tapping animation can be inconsistent #1

mintcollege opened this issue Mar 22, 2023 · 0 comments

Comments

@mintcollege
Copy link

mintcollege commented Mar 22, 2023

I noticed that sometimes the animation won't scale to the value of end after multiple taps. Is there perhaps a trigger which is still running which prevents the overlapping of tap animations?

I tried this with successive fast taps (500ms gap) and slow taps (1-2 sec gap). If I could guess I'd say out of 10 taps the animation would trigger about 7 times.

These are my settings:

ZoomTapAnimation(
      onTap: () => print('tap'),
      begin: 1.0,
      end: 0.9,
      beginCurve: Curves.decelerate,
      endCurve: Curves.fastOutSlowIn,
      child: child
    );

I thought perhaps the curves were causing this but apparently that's not the case. Btw, the onTap callback works fine it's just the animation that's not consistent. Any possible fixes for this?

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

1 participant