2023-03-24 21:48:34 +01:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
|
|
|
|
|
|
|
class ErrorMessageEncryption extends StatelessWidget {
|
|
|
|
final String errorMessage;
|
|
|
|
|
|
|
|
const ErrorMessageEncryption({
|
2024-09-11 18:13:26 +02:00
|
|
|
super.key,
|
2023-03-24 21:48:34 +01:00
|
|
|
required this.errorMessage,
|
2024-09-11 18:13:26 +02:00
|
|
|
});
|
2023-03-24 21:48:34 +01:00
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return AlertDialog(
|
|
|
|
title: Text(AppLocalizations.of(context)!.error),
|
|
|
|
content: Text(errorMessage),
|
|
|
|
actions: [
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
children: [
|
|
|
|
TextButton(
|
|
|
|
onPressed: () => Navigator.pop(context),
|
|
|
|
child: Text(AppLocalizations.of(context)!.close)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|