NikhilVadoliya / Flutter_slider_drawer

You can make slider drawer type ui by this plugin
https://pub.dev/packages/flutter_slider_drawer
BSD 2-Clause "Simplified" License
179 stars 48 forks source link

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

Open FrazeColder opened 2 years ago

FrazeColder commented 2 years ago

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

NikhilVadoliya commented 2 years ago

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