adguard-home-manager/lib/screens/settings/update_server/autoupdate_unavailable.dart

46 lines
1.2 KiB
Dart
Raw Normal View History

2023-04-07 16:48:58 +02:00
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
class AutoUpdateUnavailableModal extends StatelessWidget {
2024-09-11 18:13:26 +02:00
const AutoUpdateUnavailableModal({super.key});
2023-04-07 16:48:58 +02:00
@override
Widget build(BuildContext context) {
return AlertDialog(
title: Column(
children: [
Icon(
Icons.error_rounded,
size: 24,
color: Theme.of(context).listTileTheme.iconColor
),
const SizedBox(height: 16),
Text(
AppLocalizations.of(context)!.autoupdateUnavailable,
textAlign: TextAlign.center,
style: TextStyle(
color: Theme.of(context).colorScheme.onSurface
),
)
],
),
content: Text(
AppLocalizations.of(context)!.autoupdateUnavailableDescription,
style: TextStyle(
color: Theme.of(context).colorScheme.onSurface
),
),
actions: [
Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
TextButton(
onPressed: () => Navigator.pop(context),
child: Text(AppLocalizations.of(context)!.close)
),
],
)
],
);
}
}