You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Drawer should close automatically when navigating to a new screen #628
When navigating to sections like Profile, Reports, or Settings from the side drawer, the drawer does not close automatically. This causes it to remain open in the background. As a result, when a user presses "Back" from one of these screens, they return to find the drawer still covering the home screen instead of seeing the main content.
Steps to reproduce
Click on drawer icon
Click on Profile, Reports, or Settings
Navigate back and you can see the issue
What was the expected result?
The navigation drawer should close automatically when a menu item is tapped. When navigating back to the home screen, the drawer should be closed rather than remaining open on top of the content.
Hi, I could reproduce this on the latest main (05f7c0c) with my Samsung SM-M307F, Android 11.
Before:
before_drawer.mp4
After:
after_drawer.mp4
The drawer items open the new page but don't close the drawer, so it's still open when you go back. The change on this branch closes it with Scaffold.of(context).closeDrawer() before opening the page. In Settings that happens first, before the saved values load.
I tested Profile, Statistics, About and Settings on my phone and the drawer stayed closed after going back. The branch also has a widget test that fails without the change.
@chetanr25 I saw your PR CCExtractor/taskwarrior-flutter#629, are you still working on this? If not, could a maintainer check if this approach is okay? I can open a PR once the issue is confirmed and assigned.
Activity
komalwork286-max commentedon Dec 1, 2026
Hi, I could reproduce this on the latest main (05f7c0c) with my Samsung SM-M307F, Android 11.
Before:
before_drawer.mp4
After:
after_drawer.mp4
The drawer items open the new page but don't close the drawer, so it's still open when you go back. The change on this branch closes it with Scaffold.of(context).closeDrawer() before opening the page. In Settings that happens first, before the saved values load.
I tested Profile, Statistics, About and Settings on my phone and the drawer stayed closed after going back. The branch also has a widget test that fails without the change.
Branch: https://github.com/komalwork286-max/taskwarrior-flutter/tree/fix/drawer-close-on-navigation
@chetanr25 I saw your PR CCExtractor/taskwarrior-flutter#629, are you still working on this? If not, could a maintainer check if this approach is okay? I can open a PR once the issue is confirmed and assigned.