Skip to content

Conversation

@dnfield
Copy link
Contributor

@dnfield dnfield commented Jul 4, 2019

Description

SliverAppBars that are floating and pinned without a bottom aren't doing semantics traversal correctly. This is because when there is no bottom, the effective scroll offset can be equal to the constraints.scrollOffset when overlapping children.

The bug was introduced by #11996, which first allowed such app bars to not have a bottom.

Related Issues

Fixes #35488

Tests

I added the following tests:

Test to check the semantics tree is good after scrolling such a sliver app bar.

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I updated/added relevant documentation (doc comments with ///).
  • All existing and new tests are passing.
  • The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require Flutter developers to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (Please read Handling breaking changes). Replace this with a link to the e-mail where you asked for input on this proposed change.
  • No, this is not a breaking change.

@dnfield dnfield added framework flutter/packages/flutter repository. See also f: labels. a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) f: scrolling Viewports, list views, slivers, etc. labels Jul 4, 2019
@dnfield dnfield requested a review from goderbauer July 4, 2019 05:26
Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks for tracking this down!

…est.dart

Co-Authored-By: Michael Goderbauer <goderbauer@google.com>
@dnfield
Copy link
Contributor Author

dnfield commented Jul 8, 2019

I'm going to merge this - this has 0 impact on the tool tests, which are taking a long time to schedule right now for some reason on mac.

@dnfield dnfield merged commit 39baa09 into flutter:master Jul 8, 2019
@dnfield dnfield deleted the fix_scrolling_app_bar_semantics branch July 8, 2019 21:02
dnfield added a commit that referenced this pull request Jul 16, 2019
dnfield added a commit that referenced this pull request Jul 17, 2019
johnsonmh pushed a commit to johnsonmh/flutter that referenced this pull request Jul 30, 2019
johnsonmh pushed a commit to johnsonmh/flutter that referenced this pull request Jul 30, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) f: scrolling Viewports, list views, slivers, etc. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

implicit a11y scrolling broken with pinned & floating AppBar

3 participants