mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-04-21 06:19:10 +00:00
41 lines
No EOL
1 KiB
Dart
41 lines
No EOL
1 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
|
|
|
class RemoveDomainModal extends StatelessWidget {
|
|
final void Function() onConfirm;
|
|
|
|
const RemoveDomainModal({
|
|
Key? key,
|
|
required this.onConfirm
|
|
}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return AlertDialog(
|
|
title: Column(
|
|
children: [
|
|
const Icon(
|
|
Icons.delete_rounded,
|
|
size: 26,
|
|
),
|
|
const SizedBox(height: 20),
|
|
Text(AppLocalizations.of(context)!.removeClient)
|
|
],
|
|
),
|
|
content: Text(AppLocalizations.of(context)!.removeClientMessage),
|
|
actions: [
|
|
TextButton(
|
|
onPressed: () => Navigator.pop(context),
|
|
child: Text(AppLocalizations.of(context)!.cancel)
|
|
),
|
|
TextButton(
|
|
onPressed: () {
|
|
onConfirm();
|
|
Navigator.pop(context);
|
|
},
|
|
child: Text(AppLocalizations.of(context)!.confirm)
|
|
),
|
|
],
|
|
);
|
|
}
|
|
} |