cefaci / flutter_web_refresh

Pull down to refresh `WebView` Page in flutter with `RefreshIndicator`.
MIT License
16 stars 6 forks source link

Unexpected refresh #4

Open A7mdlbanna opened 10 months ago

A7mdlbanna commented 10 months ago

I get unexpected refreshes when opening a dialog in the web view after any swipe down

Video

cefaci commented 10 months ago

Hi! I checked your updates, they work fine, but the example didn't work anymore, you attached dragGesturePullToRefresh.setContext(context) to the wrong context, not to the RefreshIndicator context. Please show your code. BTW: scrollPos.dy == 0 allows RefreshIndicator only if you are at the top of the page

A7mdlbanna commented 8 months ago

Hello, sorry for the late reply!

the problem was a refresh when I scrolled upward anywhere in the web model or popup

the fix was to use RefreshIndicatorTriggerMode.onEdge

rijamyazid commented 6 months ago

Hello, sorry for the late reply!

the problem was a refresh when I scrolled upward anywhere in the web model or popup

the fix was to use RefreshIndicatorTriggerMode.onEdge

Which part do you change to RefreshIndicatorTriggerMode.onEdge mine show similar behavior when scrolled upward the scroll bar appear

image

Mysteriosis commented 5 months ago

Same problem here, scrollPos.dy is always a fixed number (often 0, which create our problem, sometimes another random one) I use the correct context. Project use Riverpod & Hooks.