fluttercommunity / flutter_blurhash

Compact representation of a placeholder for an image. Encode a blurry image under 30 caracters for instant display like used by Medium. Maintainer: @Solido
https://pub.dev/packages/flutter_blurhash
MIT License
513 stars 65 forks source link

BlurHash widget does not have an error attribute #28

Closed sentd94 closed 3 years ago

sentd94 commented 3 years ago

If you run into an exception trying to download the image (e.g. connection timeout due to bad connection) a red cross with the error message will be shown ontop of the blurhash image. Currently there is no way to disable this behaviour (I'd rather stick with the blur hash over having this ugly cross) or to set a custom error image.

girish54321 commented 3 years ago

Try this @sentd94 Link

Solido commented 3 years ago

Thx @girish54321 this is the right approach.

girish54321 commented 3 years ago

Yes this is better @Solido