majro update

This commit is contained in:
Fabian Freund
2025-02-28 14:30:49 +01:00
parent a8957f6cf8
commit 3c4d479bd9
181 changed files with 7090 additions and 5299 deletions
+4 -4
View File
@@ -1,12 +1,12 @@
import 'dart:ui';
import 'package:xxh3/xxh3.dart';
import 'package:fast_equatable/hash.dart';
extension ImageHash on Image {
Future<int?> calculateHash() async {
final bytes = await toByteData();
if (bytes != null) {
final digest = xxh3(bytes.buffer.asUint8List());
final byteData = await toByteData();
if (byteData != null) {
final digest = secureHash(byteData);
return digest;
}