mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-04-21 22:39:11 +00:00
25 lines
No EOL
618 B
Dart
25 lines
No EOL
618 B
Dart
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)
|
|
)
|
|
],
|
|
);
|
|
}
|
|
} |