Skip to content

Conversation

@Piinks
Copy link
Contributor

@Piinks Piinks commented Apr 26, 2022

Original change #101460
Reverted in #101929
Fixes #101416 (again) 🙂

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: material design flutter/packages/flutter/material repository. f: scrolling Viewports, list views, slivers, etc. framework flutter/packages/flutter repository. See also f: labels. labels Apr 26, 2022

void _handleScrollNotification(ScrollNotification notification) {
if (notification is ScrollUpdateNotification) {
if (notification is ScrollUpdateNotification && notification.depth == 0) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the change from the revert. If there are additional scroll views nested below, they could inaccurately change scrolled under to false, while the outer, main scroll view is actually scrolled under.

@Piinks Piinks requested a review from darrenaustin April 27, 2022 20:53
@Piinks Piinks marked this pull request as ready for review April 27, 2022 21:49
@Piinks Piinks requested a review from HansMuller April 27, 2022 21:49
Copy link
Contributor

@darrenaustin darrenaustin left a comment

Choose a reason for hiding this comment

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

LGTM. Thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

f: material design flutter/packages/flutter/material repository. 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.

AppBar with reversed scrollable doesn't properly indicate scrolledUnder state

3 participants