Repository navigation
AppBar shows Back Button when EndDrawer is open #13601
Copy link
Copy link
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.f: routesNavigator, Router, and related APIs.Navigator, Router, and related APIs.found in release: 1.21Found to occur in 1.21Found to occur in 1.21frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packages
Description
Steps to Reproduce
- Add an
appBarwith atitleandendDrawerto aScaffoldin a LTR language (English in my case). - Observe the
AppBar. No back button. - Open the
endDrawer - Observe the
AppBar. Back Button appears.
Not an end of the world bug by any means, but overall it looks a bit weird / causes a visual flash in the UI as the Drawer animates in smoothly and then the back button pops in all of a sudden. In addition, it can't be tapped because it's underneath the Drawer layer, so it appears to lack functional value for being there.
Might make sense to simply not show the back button in response to a Drawer being opened? Not sure what other ramifications that would have...
Thanks for your time :)
Screenshot
Flutter Doctor
[✓] Flutter (on Mac OS X 10.13.2 17C88, locale en-US, channel alpha)
• Flutter at /Users/phillywiggins/lab/flutter
• Framework revision 8f65fec5f5 (3 days ago), 2017-12-12 09:50:14 -0800
• Engine revision edaecdc8b8
• Tools Dart version 1.25.0-dev.11.0
• Engine Dart version 2.0.0-edge.d8ae797298c3a6cf8dc9f4558707bd2672224d3e
[✓] Android toolchain - develop for Android devices (Android SDK 26.0.2)
• Android SDK at /Users/phillywiggins/Library/Android/sdk
• Android NDK at /Users/phillywiggins/Library/Android/sdk/ndk-bundle
• Platform android-26, build-tools 26.0.2
• ANDROID_HOME = /Users/phillywiggins/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.2, Build version 9C40b
• ios-deploy 1.9.2
• CocoaPods version 1.3.1
[✓] Android Studio (version 3.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[✓] IntelliJ IDEA Community Edition (version 2017.3.1)
• Flutter plugin version 20.0.3
• Dart plugin version 173.3942.31
[✓] Connected devices
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.f: routesNavigator, Router, and related APIs.Navigator, Router, and related APIs.found in release: 1.21Found to occur in 1.21Found to occur in 1.21frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packages

Activity
Hixie commentedon Dec 15, 2017
Hah, that's funny. The back button is appearing because you can now go back (to close the drawer!).
We should have the back button be more aware of where it sits on the history stack so that it ignores routes put on top of it (I bet the same thing happens if you show a dialog).
alamyudi commentedon Aug 23, 2018
i'm also have same experience, but it's done by setting up
automaticallyImplyLeadingtofalsein AppBar.VladyslavBondarenko commentedon Jul 31, 2020
Persists with current master
1.21.0-6.0.pre.129Back Button is shown when Drawer is open (isn't shown when dialog is open).
code sample
flutter doctor -v
thecalamiity commentedon Sep 23, 2020
@Hixie PR fixing this issue was merged. I think we can close this
pedromassango commentedon Sep 24, 2020
Fixed by #63272
pedromassangocode commentedon Sep 25, 2020
Closing as fixed by #63272
tushardabhi1410 commentedon Feb 5, 2021
Simple Way to fix that problem
-> Add Appbar Following Code
automaticallyImplyLeading: false,Solve Your Problems
github-actions commentedon Aug 6, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.