Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unnecessary NavigationAppBar leading icon when no NavigationPane was provided #551

Merged
merged 3 commits into from
Oct 8, 2022

Conversation

DMouayad
Copy link
Contributor

Description

After updating from version 3.11 to 4.0.1 I encountered a problem with NavigationAppBar.
For screen width <= 640 it was showing an icon for openin'/closing the pane which is the expected behavior, but the issue is I did not provide a NavigationPane for the NavigationView so the icon is unnecessary.

I found in the source code that an additional leading icon is added to the app bar but without checking whether there's a pane or not.
What I did basically is adding an If statement before adding the additional leading.

It's a small bug, please add a fix for it if the pull request is missing something.

Pre-launch Checklist

  • [✔] I have updated CHANGELOG.md with my changes
  • [✔] I have run "dart format ." on the project

fix NavigationAppBar unnecessary leading icon when NavigationPane is not provided
add bug-fix description for unnecessary NavigationAppBar leading icon
Copy link
Owner

@bdlukaa bdlukaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

I just updated the changelog, hope you don't mind

@bdlukaa bdlukaa merged commit 234dbd4 into bdlukaa:master Oct 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants