vintage / scratcher

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

Image.network with errorBuilder in Scratcher #49

Open tirth-multipl opened 1 year ago

tirth-multipl commented 1 year ago

I tried to use errorBuilder with Image.network in the image parameter of Scratcher but it is not working.

Scratcher(  
  image: Image.network(
    asset-which-fails-load,
    errorBuilder: (context, error, st) {
      return Image.asset(some-backup-image); // this doesn't work ...
    },
  ),
),