mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-04 20:30:35 +00:00
Added check and save encryption settings
This commit is contained in:
parent
137a976a36
commit
3a2483e9d6
7 changed files with 535 additions and 31 deletions
25
lib/screens/settings/encryption/config_error_modal.dart
Normal file
25
lib/screens/settings/encryption/config_error_modal.dart
Normal 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)
|
||||
)
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue