vintage / scratcher

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

Support Scratcher for web using HTML renderer #33

Closed ineelp closed 2 years ago

ineelp commented 3 years ago

Hi @vintage,

Currently, the scratcher plugin works well using canvaskit for the web platform. But the problem is that it freezes up the app when the app hits a performance issue and it forces the browser to reload on iOS devices. This is producible on both 2.0.0 and 2.2.0 flutter stable channel. When using html renderer, it only displays the image and it can't be scratch off.

Are there any workarounds or suggestions to get this plugin working using html renderer?

Thanks,

Neel

souvik-bera commented 2 years ago

Same issue. looking for some updates

vintage commented 2 years ago

As the Paint implementation is not supported on web renderer, there is not much I can do here. The performance has been improved through https://github.com/vintage/scratcher/pull/37 If anyone got other approaches to squeeze it even more - feel free to submit PR!