flutter_smooth icon indicating copy to clipboard operation
flutter_smooth copied to clipboard

Improve `SmoothListView.handleEnginePendingEvent` by triggering conditionally

Open fzyzcjy opened this issue 3 years ago • 2 comments

fzyzcjy avatar Oct 15 '22 04:10 fzyzcjy

Could it be possible to wrap the Smoothlistview in a Listener and then listen for pointerUpEvents? I can't test anything at the moment, as I've no idea how to work with a custom flutter engine.

Erik0806 avatar Oct 18 '22 10:10 Erik0806

  • For pointer move events, already handle it well in PreemptRender mechanism
  • For pointer up/down/whatever-fancy events, the Brake mechanism works well - e.g. when your finger leave screen, SmoothListView understands that pointer up event well

Both are demonstrated in SmoothListView

anyway, you may not know those terms before I write down an article explaining the internals...

fzyzcjy avatar Oct 18 '22 11:10 fzyzcjy

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 17 '22 12:12 stale[bot]

bump

fzyzcjy avatar Dec 17 '22 12:12 fzyzcjy

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Feb 15 '23 18:02 stale[bot]