2022-10-19 14:12:53 +02:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
|
|
|
|
2022-10-19 18:34:11 +02:00
|
|
|
import 'package:adguard_home_manager/screens/settings/dns/dns_server_settings.dart';
|
|
|
|
import 'package:adguard_home_manager/screens/settings/dns/bootstrap_dns.dart';
|
|
|
|
import 'package:adguard_home_manager/screens/settings/dns/private_reverse_servers.dart';
|
|
|
|
import 'package:adguard_home_manager/screens/settings/dns/upstream_dns.dart';
|
2022-10-19 14:12:53 +02:00
|
|
|
|
2022-10-19 18:34:11 +02:00
|
|
|
class DnsSettings extends StatelessWidget {
|
2022-10-19 14:12:53 +02:00
|
|
|
const DnsSettings({Key? key}) : super(key: key);
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Scaffold(
|
|
|
|
appBar: AppBar(
|
2022-10-19 18:34:11 +02:00
|
|
|
title: Text(AppLocalizations.of(context)!.dnsSettings),
|
2022-10-19 14:12:53 +02:00
|
|
|
),
|
|
|
|
body: ListView(
|
|
|
|
children: [
|
2022-10-19 18:34:11 +02:00
|
|
|
ListTile(
|
|
|
|
title: Text(
|
|
|
|
AppLocalizations.of(context)!.upstreamDns,
|
|
|
|
style: const TextStyle(
|
|
|
|
fontSize: 16,
|
|
|
|
fontWeight: FontWeight.normal
|
2022-10-19 14:12:53 +02:00
|
|
|
),
|
|
|
|
),
|
2022-10-19 18:34:11 +02:00
|
|
|
onTap: () => Navigator.push(context, MaterialPageRoute(
|
|
|
|
builder: (context) => const UpstreamDnsScreen()
|
|
|
|
)),
|
2022-10-19 15:33:15 +02:00
|
|
|
),
|
2022-10-19 18:34:11 +02:00
|
|
|
ListTile(
|
|
|
|
title: Text(
|
|
|
|
AppLocalizations.of(context)!.bootstrapDns,
|
|
|
|
style: const TextStyle(
|
|
|
|
fontSize: 16,
|
|
|
|
fontWeight: FontWeight.normal
|
2022-10-19 15:33:15 +02:00
|
|
|
),
|
|
|
|
),
|
2022-10-19 18:34:11 +02:00
|
|
|
onTap: () => Navigator.push(context, MaterialPageRoute(
|
|
|
|
builder: (context) => const BootstrapDnsScreen()
|
|
|
|
)),
|
2022-10-19 15:33:15 +02:00
|
|
|
),
|
2022-10-19 18:34:11 +02:00
|
|
|
ListTile(
|
|
|
|
title: Text(
|
|
|
|
AppLocalizations.of(context)!.privateReverseDnsServers,
|
|
|
|
style: const TextStyle(
|
|
|
|
fontSize: 16,
|
|
|
|
fontWeight: FontWeight.normal
|
2022-10-19 15:33:15 +02:00
|
|
|
),
|
|
|
|
),
|
2022-10-19 18:34:11 +02:00
|
|
|
onTap: () => Navigator.push(context, MaterialPageRoute(
|
|
|
|
builder: (context) => const PrivateReverseDnsServersScreen()
|
|
|
|
)),
|
2022-10-19 15:33:15 +02:00
|
|
|
),
|
2022-10-19 18:34:11 +02:00
|
|
|
ListTile(
|
|
|
|
title: Text(
|
|
|
|
AppLocalizations.of(context)!.dnsServerSettings,
|
|
|
|
style: const TextStyle(
|
|
|
|
fontSize: 16,
|
|
|
|
fontWeight: FontWeight.normal
|
2022-10-19 15:33:15 +02:00
|
|
|
),
|
|
|
|
),
|
2022-10-19 18:34:11 +02:00
|
|
|
onTap: () => Navigator.push(context, MaterialPageRoute(
|
|
|
|
builder: (context) => const DnsServerSettingsScreen()
|
2022-10-19 15:33:15 +02:00
|
|
|
)),
|
|
|
|
),
|
2022-10-19 14:12:53 +02:00
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|