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 CupertinoSliverNavigationBar's alwaysShowMiddle not working properly during page transition #120895

Merged
merged 2 commits into from Mar 1, 2023

Conversation

DavideDessi319
Copy link
Contributor

This change fixes the CupertinoSliverNavigationBar's middle Widget showing for an instant during a page transition when the nav bar is not collapsed and alwaysShowMiddle is set to false. The PR adds a check on the transition's hasUserMiddle property based on the alwaysShowMiddle and the collapsed/expanded state of the nav bar.

Fixes #119522

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard flutter-dashboard bot added f: cupertino flutter/packages/flutter/cupertino repository framework flutter/packages/flutter repository. See also f: labels. labels Feb 16, 2023
@DavideDessi319 DavideDessi319 changed the title Fixes CupertinoSliverNavigationBar's alwaysShowMiddle not working properly during page transition Fix CupertinoSliverNavigationBar's alwaysShowMiddle not working properly during page transition Feb 16, 2023
@MitchellGoodwin
Copy link
Contributor

@DavideDessi319 there's been some infrastructure issues with the tests. Could you please rebase onto the latest master branch?

…nBar page transition if alwaysShowMiddle is set to false
@DavideDessi319
Copy link
Contributor Author

@DavideDessi319 there's been some infrastructure issues with the tests. Could you please rebase onto the latest master branch?

@MitchellGoodwin apologies for the delay on the rebase, it should be done now!
Thank you for the check 🙂

Copy link
Contributor

@MitchellGoodwin MitchellGoodwin left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you for taking the time to fix this.

Copy link
Contributor

@Piinks Piinks left a comment

Choose a reason for hiding this comment

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

LGTM with a few style guide nits!

@Piinks Piinks added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 1, 2023
@auto-submit auto-submit bot merged commit 844fc5f into flutter:master Mar 1, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 2, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 2, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 2, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 2, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 2, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 2, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 2, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 3, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 3, 2023
@DavideDessi319 DavideDessi319 deleted the fix/119522 branch March 4, 2023 19:43
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App f: cupertino flutter/packages/flutter/cupertino repository framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CupertinoSliverNavigationBar's alwaysShowMiddle now working during page transition
3 participants