fix: Minor fixes

This commit is contained in:
Krille Fear 2021-11-21 09:07:33 +01:00
commit a143b978a3
3 changed files with 16 additions and 14 deletions

View file

@ -50,6 +50,9 @@ class FlutterFluffyBoxDatabase extends FluffyBoxDatabase {
hiverCipher = HiveAesCipher(base64Url.decode(rawEncryptionKey));
} on MissingPluginException catch (_) {
Logs().i('FluffyBox encryption is not supported on this platform');
} catch (_) {
const FlutterSecureStorage().delete(key: _cipherStorageKey);
rethrow;
}
final db = FluffyBoxDatabase(