vintage / scratcher

Scratch card widget which temporarily hides content from user.
https://pub.dev/packages/scratcher
MIT License
572 stars 67 forks source link

OnPanStart, Update and End Gestures callbacks #21

Closed nooralibutt closed 3 years ago

nooralibutt commented 3 years ago

I need these callbacks outside so that I can implement sound effects while user scratches.

vintage commented 3 years ago

Sounds like a reasonable use case to cover. Will expose additional callbacks later this week.

vintage commented 3 years ago

@nooralibutt done. onScratchStart, onScratchUpdate and onScratchEnd landed in 1.4.1 https://pub.dev/packages/scratcher ;)

nooralibutt commented 3 years ago

@vintage wow, amazing. Job well done.

Although, I don't need it but I think you should have passed the details argument with these callbacks, that was comping with pan gesture. Thanks though.

vintage commented 3 years ago

Nah, I don't see any real use-case for these. Will add meaningful data to the callbacks when proper issue got reported.

nooralibutt commented 3 years ago

Awesome.