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

[BUG] animated burger menu icon is not performing animation when opening slider via right slide #24

Open
FrazeColder opened this issue Mar 8, 2022 · 1 comment

Comments

@FrazeColder
Copy link

FrazeColder commented Mar 8, 2022

Hey @NikhilVadoliya,

I am not 100 % sure if the following problem is a bug or is happening because I am using a custom app bar. However, when a user opens the slider drawer via a slide gesture (right swipe) and closing it again with a left swipe, the animated icon is not being triggered and therefore it can happen, that the icon shows the wrong state.

Is it possible to solve this problem and if yes how?
I guess I have to call the animationController.reverse() function or the animationController.forward() function. This actually is not a problem at all. But how do I detect the gesture?

Here you can see the problem:
Slider

Kind regards

@FrazeColder FrazeColder changed the title [BUG] animated burger menu icon is not performing animation when opening slider via roi [BUG] animated burger menu icon is not performing animation when opening slider via right slide Mar 8, 2022
@NikhilVadoliya
Copy link
Owner

Hello @FrazeColder , If you are using custom app bar then you can use

AnimatedIcon(
         icon: AnimatedIcons.menu_close, progress: animationController,...);

in appbar and animated icon

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