Added check and save encryption settings

This commit is contained in:
Juan Gilsanz Polo 2022-10-23 04:50:12 +02:00
parent 137a976a36
commit 3a2483e9d6
7 changed files with 535 additions and 31 deletions

View file

@ -0,0 +1,25 @@
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
class EncryptionErrorModal extends StatelessWidget {
final String error;
const EncryptionErrorModal({
Key? key,
required this.error,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return AlertDialog(
title: Text(AppLocalizations.of(context)!.configError),
content: Text(error),
actions: [
TextButton(
onPressed: () => Navigator.pop(context),
child: Text(AppLocalizations.of(context)!.close)
)
],
);
}
}