Skip to content

Conversation

@Piinks
Copy link
Contributor

@Piinks Piinks commented Apr 6, 2022

Fixes #101416

This fixes an issue where a reversed scroll view would not adhere to the scrolled under behavior when content extends under it until after a user scrolls. It changes the ScrollNotificationObserver to a ScrollMetricsNotificationObserver, as the ScrollMetricsNotification is what is required to get the initial metrics of the scroll view without having scrolled yet.

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 6, 2022
@Piinks Piinks requested review from HansMuller and guidezpl April 6, 2022 23:24
@Piinks
Copy link
Contributor Author

Piinks commented Apr 7, 2022

The google test failure here is unrelated to the change. Marking green manually.

@Piinks Piinks merged commit c7d2935 into flutter:master Apr 7, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Apr 7, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 7, 2022
XilaiZhang added a commit to XilaiZhang/flutter that referenced this pull request Apr 14, 2022
XilaiZhang added a commit to XilaiZhang/flutter that referenced this pull request Apr 14, 2022
Piinks added a commit to Piinks/flutter that referenced this pull request Apr 14, 2022
XilaiZhang added a commit to XilaiZhang/flutter that referenced this pull request Apr 14, 2022
Revert "Fix reverse cases for App Bar scrolled under behavior (flutter#101460)"

This reverts commit c7d2935.
XilaiZhang pushed a commit that referenced this pull request Apr 14, 2022
…" (#101929)

merging now since it blocks flutter roll for too long
godofredoc added a commit that referenced this pull request Apr 20, 2022
godofredoc added a commit that referenced this pull request Apr 21, 2022
…" (#101929) (#102264)

merging now since it blocks flutter roll for too long

Co-authored-by: Kate Lovett <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

customer: money (g3) 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

2 participants