-
Notifications
You must be signed in to change notification settings - Fork 28.8k
Add Drag Sensitivity to RefreshIndicator #170170
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
base: master
Are you sure you want to change the base?
Add Drag Sensitivity to RefreshIndicator #170170
Conversation
…prove readability
…thub.com/AcarFurkan/flutter into add-drag-sensitivity-to-refreshIndicator
Thanks for picking up the PR! As part of the review, have you observed similar options or customizations in other Android apps? Just wanting to know how this should be customized. |
Sorry for the late review. So this PR is meant to fix #147363, but I don't think it really fixes the core problem. The target issue was due to the fact that nesting scroll views leads to a huge Can you explain why you chose this approach instead continuing the approach used in #147961 ? (Other than that, this PR looks pretty good as a PR that simply wants to add a |
Hey @dkwingsmt, thanks for the review! In the implementation at this PR, the sensitivity wasn’t consistent across different screen sizes it behaved differently on large and small screens. |
Yeah I can see that. But the problem is that your approach doesn't solve this problem automatically either, since the user has to assign a sensitivity, which is even more tedious because it is a factor on the full extent. I would imagine that the common value would be to use the full extent of the outmost scroll view. Do you think so? And if so, do you think if there's a way to acquire and apply that value? |
Drag Sensitivity Feature:
Added a new dragSensitivity parameter to the RefreshIndicator, allowing developers to customize the amount of drag required to trigger a refresh. This feature provides greater control over the user experience, especially in applications where the default sensitivity may not be ideal.
Example Update:
Updated the
refresh_indicator.0.dart
example to demonstrate the new dragSensitivity parameter. The example now includes a sensitivity setting of 0.7, showcasing how this adjustment affects the refresh behavior.List which issues are fixed by this PR. You must list at least one issue. An issue is not required if the PR fixes something trivial like a typo.
Fixes #147363
Pre-launch Checklist
///
).