Skip to content

Conversation

@xu-baolin
Copy link
Member

1, notify the first scroll metrics initialize change(null -> non-null)
2,remove the first empty scroll notification request

CC @Piinks @chunhtai

@flutter-dashboard flutter-dashboard bot added f: cupertino flutter/packages/flutter/cupertino repository framework flutter/packages/flutter repository. See also f: labels. labels Aug 1, 2021
@google-cla google-cla bot added the cla: yes label Aug 1, 2021
@chunhtai chunhtai requested a review from Piinks August 2, 2021 15:39
Copy link
Contributor

@chunhtai chunhtai left a comment

Choose a reason for hiding this comment

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

LGTM

@Piinks Piinks added the f: scrolling Viewports, list views, slivers, etc. label Aug 2, 2021
// thumb to show immediately when isAlwaysShown is true. A scroll
// event is required in order to paint the thumb.
assert(_debugCheckHasValidScrollPosition());
scrollController!.position.didUpdateScrollPositionBy(0);
Copy link
Contributor

Choose a reason for hiding this comment

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

Removing this hack is nice! 👍

Copy link
Member Author

Choose a reason for hiding this comment

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

😄

if (widget.isAlwaysShown == true) {
_maybeTriggerScrollbar();
assert(_debugScheduleCheckHasValidScrollPosition());
_fadeoutTimer?.cancel();
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh I see, the rest was factored out of the assert. This is a really nice clean up.

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

@Piinks
Copy link
Contributor

Piinks commented Aug 2, 2021

Rebasing after #87518 should fix the failing check. See #87517 for more info

@fluttergithubbot fluttergithubbot merged commit 52bf9db into flutter:master Aug 3, 2021
Piinks added a commit that referenced this pull request Aug 4, 2021
Piinks added a commit that referenced this pull request Aug 4, 2021
chunhtai added a commit to chunhtai/flutter that referenced this pull request Aug 6, 2021
chunhtai added a commit that referenced this pull request Aug 9, 2021
* Reland "update ScrollMetricsNotification (#87421)"

This reverts commit 0f465e5.

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

Labels

f: cupertino flutter/packages/flutter/cupertino 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.

4 participants