vintage / scratcher

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

Improve performance #37

Closed tcd93 closed 2 years ago

tcd93 commented 2 years ago

Set.difference() is refactored as it is extremely slow

Tested on PC browser, work well with both html and canvaskit renderers (ahh Flutter will default to canvaskit if it's on PC, if we specificly call --web-renderer html it'll not work, just like on mobile browser)

Have not tested on any mobile browser/physical mobile device

tcd93 commented 2 years ago

Fix #36