Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

How to determine direction & amount dragged? #11

Open
jonjon1123 opened this issue Jul 24, 2021 · 3 comments
Open

How to determine direction & amount dragged? #11

jonjon1123 opened this issue Jul 24, 2021 · 3 comments

Comments

@jonjon1123
Copy link

Hi there!

I'm trying to figure out how I can use this library to get the direction the user is dragging (clockwise or counter-clockwise) and the amount they have dragged. I see there is onDragUpdate , but I am not sure how to use the PolarCoord from that function to determine the direction and amount dragged.

Any guidance would be greatly appreciated!

@asjqkkkk
Copy link
Owner

Hi, maybe you can use angle to determine the direction😄

@jonjon1123
Copy link
Author

Yeah, I eventually figured that out. Now I am trying to figure out how to determine the velocity of the dragging. I am trying to achieve something similar to this: https://fireship.io/snippets/circular-drag-flutter/. Maybe this lib could just expose onPanUpdate of the GestureDetector?

@annalaufey
Copy link

jonjon1123 did you find a solution? I'm looking for something very similar

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants