mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-19 08:20:19 +00:00
Moved some files and fixed issue modal access settings
This commit is contained in:
parent
e4986c0bd9
commit
ce9367b29f
8 changed files with 8 additions and 8 deletions
40
lib/screens/settings/server_info/dns_addresses_modal.dart
Normal file
40
lib/screens/settings/server_info/dns_addresses_modal.dart
Normal file
|
@ -0,0 +1,40 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||
|
||||
class DnsAddressesModal extends StatelessWidget {
|
||||
final List<String> dnsAddresses;
|
||||
|
||||
const DnsAddressesModal({
|
||||
Key? key,
|
||||
required this.dnsAddresses,
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return AlertDialog(
|
||||
title: Column(
|
||||
children: [
|
||||
const Icon(Icons.route_rounded),
|
||||
const SizedBox(height: 20),
|
||||
Text(AppLocalizations.of(context)!.dnsAddresses)
|
||||
],
|
||||
),
|
||||
content: SizedBox(
|
||||
height: dnsAddresses.length*56 < 500
|
||||
? dnsAddresses.length*56 : 500,
|
||||
width: double.minPositive,
|
||||
child: ListView(
|
||||
children: dnsAddresses.map((address) => ListTile(
|
||||
title: Text(address),
|
||||
)).toList(),
|
||||
),
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: () => Navigator.pop(context),
|
||||
child: Text(AppLocalizations.of(context)!.close)
|
||||
)
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue