You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, many thanks for the package! It satisfies my needs in caching media files (images and audio) in a app which needs to run on multiple platforms including web.
However, when I request a file from the cache using an indexed DB, the code
Uint8List data = await stock.get(path);
never finishes, even the data gets fetched and stored in the database successfully. The writer method for the database finishes and returns the data:
Future<Uint8List> writeFile(path, data) async {
var txn = db.transaction(storeName, "readwrite");
var store = txn.objectStore(storeName);
await store.put(data, path);
log.d("writing finished. waiting for completion.");
await txn.completed;
log.d("writing data to database completed");
return data;
}
When the data is already cached and existing in the database, everything works as expected.
First of all, many thanks for the package! It satisfies my needs in caching media files (images and audio) in a app which needs to run on multiple platforms including web.
However, when I request a file from the cache using an indexed DB, the code
Uint8List data = await stock.get(path);
never finishes, even the data gets fetched and stored in the database successfully. The writer method for the database finishes and returns the data:
When the data is already cached and existing in the database, everything works as expected.
Here is the initialization of the stock:
Kind regards,
Johannes
The text was updated successfully, but these errors were encountered: