Код: Выделить всё
_AssertionError ('package:encrypt_shared_preferences/src/enc_shared_pref_async.dart': Failed assertion: line 17 pos 12: '_key != null': is not true.).
Код: Выделить всё
void main() async {
await EncryptedSharedPreferencesAsync.initialize(
EbmkgEncryptedPreferences.encrpytionKey);
runApp(const ProviderScope(child: HomeApp());
}
Код: Выделить всё
final ebmkgEncryptedPrefsProvider = Provider((ref) {
return EbmkgEncryptedPreferences();
});
Код: Выделить всё
class EbmkgEncryptedPreferences {
static const encrpytionKey = 'a2c4e6g8i0k2xxxx';
final _ePrefs = EncryptedSharedPreferencesAsync.getInstance();
}
Подробнее здесь: https://stackoverflow.com/questions/792 ... ion-failed
Мобильная версия