medyas / flutter_zoom_drawer

A Flutter package with custom implementation of Drawer
MIT License
457 stars 102 forks source link

Added the AnimationBuilder outside the Stateless #124

Closed marcoedomingos closed 1 year ago

marcoedomingos commented 1 year ago

This PR fixes issue #122

The cause of this problem was the animationValue which was fixed at the initial value 0.0 even with the animationController value change.

I added the AnimationBuilder Widget outside the StatelessWidget class of each Styles Widget, this way the widget can be rebuilt according to the animationController value.

This also fixes the angle not working issue I ran into when trying to use any other DrawerStyles other than the defaultStyle.

marcoedomingos commented 1 year ago

@medyas ??