mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-14 22:12:53 +00:00
Changed system navigation bar color
This commit is contained in:
parent
83ea589187
commit
b164d520db
47 changed files with 3370 additions and 3207 deletions
|
@ -11,7 +11,7 @@ import 'package:adguard_home_manager/functions/snackbar.dart';
|
|||
import 'package:adguard_home_manager/providers/app_config_provider.dart';
|
||||
|
||||
class AdvancedSettings extends StatelessWidget {
|
||||
const AdvancedSettings({Key? key}) : super(key: key);
|
||||
const AdvancedSettings({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -46,31 +46,33 @@ class AdvancedSettings extends StatelessWidget {
|
|||
title: Text(AppLocalizations.of(context)!.advancedSettings),
|
||||
surfaceTintColor: isDesktop(width) ? Colors.transparent : null,
|
||||
),
|
||||
body: ListView(
|
||||
children: [
|
||||
CustomListTile(
|
||||
icon: Icons.lock,
|
||||
title: AppLocalizations.of(context)!.dontCheckCertificate,
|
||||
subtitle: AppLocalizations.of(context)!.dontCheckCertificateDescription,
|
||||
trailing: Switch(
|
||||
value: appConfigProvider.overrideSslCheck,
|
||||
onChanged: (value) => updateSettings(
|
||||
newStatus: value,
|
||||
body: SafeArea(
|
||||
child: ListView(
|
||||
children: [
|
||||
CustomListTile(
|
||||
icon: Icons.lock,
|
||||
title: AppLocalizations.of(context)!.dontCheckCertificate,
|
||||
subtitle: AppLocalizations.of(context)!.dontCheckCertificateDescription,
|
||||
trailing: Switch(
|
||||
value: appConfigProvider.overrideSslCheck,
|
||||
onChanged: (value) => updateSettings(
|
||||
newStatus: value,
|
||||
function: appConfigProvider.setOverrideSslCheck
|
||||
),
|
||||
),
|
||||
onTap: () => updateSettings(
|
||||
newStatus: !appConfigProvider.overrideSslCheck,
|
||||
function: appConfigProvider.setOverrideSslCheck
|
||||
),
|
||||
padding: const EdgeInsets.only(
|
||||
top: 10,
|
||||
bottom: 10,
|
||||
left: 20,
|
||||
right: 10
|
||||
)
|
||||
),
|
||||
onTap: () => updateSettings(
|
||||
newStatus: !appConfigProvider.overrideSslCheck,
|
||||
function: appConfigProvider.setOverrideSslCheck
|
||||
),
|
||||
padding: const EdgeInsets.only(
|
||||
top: 10,
|
||||
bottom: 10,
|
||||
left: 20,
|
||||
right: 10
|
||||
)
|
||||
),
|
||||
],
|
||||
],
|
||||
),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue