From a2c4327b8a16ac6e746f7fe9553560276556250a Mon Sep 17 00:00:00 2001 From: Ananya Kaul Date: Tue, 20 Oct 2026 10:32:30 +0530 Subject: [PATCH] fix: include decoding dimensions in BlurHashImage cache keys --- lib/src/blurhash_image.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/src/blurhash_image.dart b/lib/src/blurhash_image.dart index 81a862b..df2e570 100644 --- a/lib/src/blurhash_image.dart +++ b/lib/src/blurhash_image.dart @@ -52,10 +52,13 @@ class BlurHashImage extends ImageProvider { ? false : other is BlurHashImage && other.blurHash == blurHash && + other.decodingWidth == decodingWidth && + other.decodingHeight == decodingHeight && other.scale == scale; @override - int get hashCode => Object.hash(blurHash.hashCode, scale); + int get hashCode => + Object.hash(blurHash.hashCode, decodingWidth, decodingHeight, scale); @override String toString() => '$runtimeType($blurHash, scale: $scale)';