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
RefreshIndicator should appear from the top of the dragged widget where the [GlowingOverscrollIndicator] appears position. #71821
Conversation
/// [OverscrollIndicatorNotification.paintOffset] to custom the position of | ||
/// GlowingOverscrollIndicator, you should insert the [NotificationListener] add between | ||
/// the [RefreshIndicator] and scrollable widgets, otherwise, the RefreshIndicator | ||
/// will cancel the notification bubbling: |
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.
should be otherwise, the RefreshIndicator can not receive the notification:
@darrenaustin Hi, |
@xu-baolin, thanks for the contribution. Sorry it has taken me a while to look at this. I just looked at another related PR #72052 and it would appear that would solve this problem as well. Depending on how it lands, the app could just set the Can you take a look at #72052 and see if it wouldn't solve the same issue by just updating your test program with: ...
return RefreshIndicator(
onRefresh: () {
return Future.delayed(const Duration(seconds: 3), () => print('onRefresh finished.'));
},
displacement: leadingPaintOffset,
... |
Thanks for reviewing. |
The key is whether the indicator and glow should appear from the same position by default? |
Hey @xu-baolin! I just came across this, would you still like to proceed with this change? |
I have no idea, #72052 seems to help this,if you think so,just close this:) |
Thank you! Much appreciated as always. :) |
Indeed. Thank you both. I have been meaning to follow up on this for a while and it got buried in my task list. |
Description
This change fixes that RefreshIndicator does not appear from the top of the dragged widget where the [GlowingOverscrollIndicator] appears position when custom the position of GlowingOverscrollIndicator.
Related Issues
Fixes #71819
Tests
I added the following tests:
See files.