feat: add package quantity normalization and AI suggestion handling in receipt import

This commit is contained in:
Nils-Johan Gynther
2026-05-01 23:18:32 +02:00
parent 32e83caa35
commit e4f1aae047
2 changed files with 183 additions and 37 deletions
+5 -1
View File
@@ -1,3 +1,4 @@
import 'dart:async';
import 'dart:js_interop';
import 'dart:typed_data';
@@ -14,6 +15,9 @@ Future<bool> openPdfBytes(Uint8List bytes) async {
web.URL.revokeObjectURL(url);
return false;
}
web.URL.revokeObjectURL(url);
// Revoke later to avoid revoking before the new tab has loaded the blob.
Future<void>.delayed(const Duration(seconds: 30), () {
web.URL.revokeObjectURL(url);
});
return true;
}