-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Modularize ReorderableListView auto scrolling logic #96563
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
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
20ad11c to
b36a133
Compare
| /// | ||
| /// The [ReorderableList] uses this scroller to auto scroll the scroll view when | ||
| /// user drag item toward the edge of the scroll view. | ||
| class _EdgeDraggingAutoScroller { |
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.
This class will eventually be moved to scrollable.dart once global selection starts to use this class. Until then this class remains private.
darrenaustin
left a comment
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. Nice refactoring. See comments below. You will also need to get a test exemption for this as there are no test changes.
|
@darrenaustin PTAL :) |
|
test-exempt: code refactor with no semantic change |
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!
|
(that said, if the code is more reusable now, you might want to add a test to verify that reusing it works, because otherwise someone might make it less reusable) |
I will add test once I made it public, it is not testable now since it is private. The reason I have not made it public now is that the API may change until I finalize the global selection pr. So I rather keep it private and embrace the fact that people may accidentally make it less reusable |
|
seems reasonable |
* Modularize ReorderableListView auto scrolling logic * comment * fix test * addressing comment
fixes #96562
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.