RafaelBarbosatec / hidden_drawer_menu

Hidden Drawer Menu is a library for adding a beautiful drawer mode menu feature with perspective animation.
MIT License
352 stars 55 forks source link

Support for orientation change #23

Open elisar4 opened 5 years ago

elisar4 commented 5 years ago

Currently on device orientation change event drawer is not recalculate slide percentage. If initial orientation was landscape and after startup we change orientation to portrait, "content" widget even not visible on the screen.

OrientationBuilder(
      builder: (context, orientation) {
         return ...;
}

Need to use OrientationBuilder inside hidden_drawer_menu, using it outside does not change "content" position