-
Notifications
You must be signed in to change notification settings - Fork 28.7k
Fixes a NestedScrollView UserScrollNotification issue #107632
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
// Regression test for https://github.com/flutter/flutter/issues/107101 | ||
final List<ScrollDirection> receivedResult = <ScrollDirection>[]; | ||
const List<ScrollDirection> expectedReverseResult = <ScrollDirection>[ScrollDirection.reverse, ScrollDirection.idle]; | ||
const List<ScrollDirection> expectedFrowardResult = <ScrollDirection>[ScrollDirection.forward, ScrollDirection.idle]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo nit:
const List<ScrollDirection> expectedFrowardResult = <ScrollDirection>[ScrollDirection.forward, ScrollDirection.idle]; | |
const List<ScrollDirection> expectedForwardResult = <ScrollDirection>[ScrollDirection.forward, ScrollDirection.idle]; |
@Piinks Hi, Could you help restart the G-test? |
@xu-baolin For some reason the "Google testing" check didn't trigger correctly. Could you rebase this PR with the latest master and push it up again? That will re-trigger the check. Sorry about this... |
|
|
Test flakes issue -> #97316 |
Fixes #107101
We do not notify the idle state if ending the drag with a velocity.
We only notify the idle state if no scrolling occurs when the drag ends.
flutter/packages/flutter/lib/src/widgets/nested_scroll_view.dart
Lines 656 to 658 in 5a5d021