pref: calculate image hash from raw bytes

This commit is contained in:
Fabian Freund
2025-02-21 11:54:26 +01:00
parent a3c900cf62
commit a9cad61d36
9 changed files with 22 additions and 32 deletions
@@ -18,12 +18,10 @@ class BrowserIcon with FastEquatable {
required Color? dominantColor,
required IconSource source,
}) async {
final image = await tryDecodeImage(
bytes,
).then((image) => image!.toEquatable());
final image = await tryDecodeImage(bytes);
return BrowserIcon(
image: image,
image: image!,
dominantColor: dominantColor,
source: source,
);