thumbhash render box

This commit is contained in:
mertalev
2025-07-10 16:41:53 +03:00
parent 0dadfc52dd
commit c482bdfae7
6 changed files with 183 additions and 61 deletions
@@ -120,12 +120,7 @@ class _BlurredBackdrop extends HookWidget {
final blurhash = asset.thumbHash;
if (blurhash != null) {
// Use a nice cheap blur hash image decoration
return Stack(
children: [
const ColoredBox(color: Color.fromRGBO(0, 0, 0, 0.2)),
Thumbhash(blurhash: blurhash, fit: BoxFit.cover),
],
);
return Thumbhash(blurhash: blurhash, fit: BoxFit.cover);
}
// Fall back to using a more expensive image filtered