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
BackButton is not displayed when there is a endDrawer #80256
The changes mentioned in the OP were introduced by @chunhtai in #73993. I'm not really sure if this is a bug or feature.
Feel free to act accordingly.
flutter doctor -v
[✓] Flutter (Channel master, 2.1.0-13.0.pre.587, on macOS 11.2.3 20D91 darwin-x64, locale en-AO)
• Flutter version 2.1.0-13.0.pre.587 at /Users/pedromassango/Code/flutter_master
• Framework revision 0fdc4e8805 (5 hours ago), 2021-04-12 18:50:00 -0700
• Engine revision 8863afff16
• Dart version 2.13.0 (build 2.13.0-222.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/pedromassango/Library/Android/sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.
[!] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
✗ CocoaPods not installed.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side. Without CocoaPods, plugins will not work on iOS or macOS. For more info, see https://flutter.dev/platform-plugins To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome[✓] Android Studio (version 4.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)[✓] IntelliJ IDEA Community Edition (version 2021.1) • IntelliJ at /Applications/IntelliJ IDEA CE.app • Flutter plugin version 55.0.5 • Dart plugin version 211.6693.108[✓] VS Code (version 1.54.3) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.16.0[✓] Connected device (4 available) • Redmi 5 Plus (mobile) • 0258ff700005 • android-arm64 • Android 8.1.0 (API 27) • sdk gphone x86 64 (mobile) • emulator-5554 • android-x64 • Android 11 (API 30) (emulator) • macOS (desktop) • macos • darwin-x64 • macOS 11.2.3 20D91 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.114! Doctor found issues in 1 category.
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 -v and a minimal reproduction of the issue.
Activity
pedromassangocode commentedon Apr 12, 2021
Hi @StarOfLife
Can you please provide your
flutter doctor -vand a minimal complete reproducible code sample?Thank you
StarOfLife commentedon Apr 13, 2021
flutter doctor -v
[√] Flutter (Channel stable, 2.0.0, on Microsoft Windows [Version 10.0.19041.867], locale zh-CN)
• Flutter version 2.0.0 at C:\Users\my\fvm\versions\stable
• Framework revision 60bd88d (6 weeks ago), 2021-03-03 09:13:17 -0800
• Engine revision 40441de
• Dart version 2.12.0
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at G:\AndroidSdk
• Platform android-30, build-tools 29.0.2
• ANDROID_HOME = G:\AndroidSdk
• Java binary at: F:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 4.1.0)
• Android Studio at F:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] VS Code (version 1.55.1)
• VS Code at C:\Users\my\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.21.0
[√] Connected device (2 available)
• Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.90
• Edge (web) • edge • web-javascript • Microsoft Edge 89.0.774.75
! Doctor found issues in 1 category.
StarOfLife commentedon Apr 13, 2021
I'm looking forward to the AppBar showing like this.

but it like this:

StarOfLife commentedon Apr 13, 2021
code sample
pedromassangocode commentedon Apr 13, 2021
The changes mentioned in the OP were introduced by @chunhtai in #73993. I'm not really sure if this is a bug or feature.
Feel free to act accordingly.
flutter doctor -v
[✓] Flutter (Channel master, 2.1.0-13.0.pre.587, on macOS 11.2.3 20D91 darwin-x64, locale en-AO) • Flutter version 2.1.0-13.0.pre.587 at /Users/pedromassango/Code/flutter_master • Framework revision 0fdc4e8805 (5 hours ago), 2021-04-12 18:50:00 -0700 • Engine revision 8863afff16 • Dart version 2.13.0 (build 2.13.0-222.0.dev) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2) • Android SDK at /Users/pedromassango/Library/Android/sdk • Platform android-30, build-tools 30.0.2 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) • All Android licenses accepted. [!] Xcode - develop for iOS and macOS • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 12.4, Build version 12D4e ✗ CocoaPods not installed. CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side. Without CocoaPods, plugins will not work on iOS or macOS. For more info, see https://flutter.dev/platform-plugins To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions. [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 4.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) [✓] IntelliJ IDEA Community Edition (version 2021.1) • IntelliJ at /Applications/IntelliJ IDEA CE.app • Flutter plugin version 55.0.5 • Dart plugin version 211.6693.108 [✓] VS Code (version 1.54.3) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.16.0 [✓] Connected device (4 available) • Redmi 5 Plus (mobile) • 0258ff700005 • android-arm64 • Android 8.1.0 (API 27) • sdk gphone x86 64 (mobile) • emulator-5554 • android-x64 • Android 11 (API 30) (emulator) • macOS (desktop) • macos • darwin-x64 • macOS 11.2.3 20D91 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.114 ! Doctor found issues in 1 category.[-]the BackButton is not show[/-][+]BackButton is not displayed when there is a endDrawer[/+]chunhtai commentedon Apr 13, 2021
The check for !hasEndDrawer was introduced a while back #63272, it looks like a regression caused by the original fix
cc @darrenaustin @gusghrlrl101
6 remaining items
chunhtai commentedon Apr 15, 2022
internal tests relies on canPop to generate backbutton for testing purposes Needs to migrate internal test before reland the pr
944095635 commentedon Mar 22, 2023
Widget? leading; if (widget.automaticallyImplyLeading) { if (hasDrawer) { leading = IconButton( icon: const Icon(Icons.menu), iconSize: overallIconTheme.size ?? 24, onPressed: _handleDrawerButton, tooltip: MaterialLocalizations.of(context).openAppDrawerTooltip, ); // TODO(chunhtai): remove (!hasEndDrawer && canPop) once internal tests // are migrated. // https://github.com/flutter/flutter/issues/80256. } else if ((!hasEndDrawer && canPop) || (parentRoute?.impliesAppBarDismissal ?? false)) { if (useCloseButton) { leading = const CloseButton(); } else { leading = widget.leading != null ? widget.leading : const BackButton(); } } }Cleans up appbar imply leading logic (#125315)
github-actions commentedon May 18, 2023
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.Cleans up appbar imply leading logic (#125315)