mitesh77/Best-Flutter-UI-Templates

Menu drawer not closing

ksankumar opened this issue · 4 comments

  1. Open the menu drawer.
  2. Tab the native back button.(Android)
  3. Drawer not getting closed.

it working fine. no issue

is this closing if you tab back button in android?

@mitesh77 , He is trying to close the drawer by pressing the native back button on his screen. While the drawer, mostly does this on its own, since you've created a custom drawer, you might have overlooked this. I can look into this if you'd like :)

We probably just need to wrap the whole thing in a WillPopScope widget. I can create a PR, if you'd like to add this