mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-14 05:52:51 +00:00
Added settings config
This commit is contained in:
parent
161628a72a
commit
8c0a5bc98b
6 changed files with 86 additions and 6 deletions
|
@ -191,6 +191,28 @@ class _GeneralSettingsState extends State<GeneralSettings> {
|
|||
builder: (context) => const ReorderableTopItemsHome()
|
||||
)),
|
||||
),
|
||||
CustomListTile(
|
||||
icon: Icons.donut_large_rounded,
|
||||
title: AppLocalizations.of(context)!.showTopItemsChart,
|
||||
subtitle: AppLocalizations.of(context)!.showTopItemsChartDescription,
|
||||
trailing: Switch(
|
||||
value: appConfigProvider.showTopItemsChart,
|
||||
onChanged: (value) => updateSettings(
|
||||
newStatus: value,
|
||||
function: appConfigProvider.setShowTopItemsChart
|
||||
),
|
||||
),
|
||||
onTap: () => updateSettings(
|
||||
newStatus: !appConfigProvider.showTopItemsChart,
|
||||
function: appConfigProvider.setShowTopItemsChart
|
||||
),
|
||||
padding: const EdgeInsets.only(
|
||||
top: 10,
|
||||
bottom: 10,
|
||||
left: 16,
|
||||
right: 10
|
||||
)
|
||||
),
|
||||
SectionLabel(label: AppLocalizations.of(context)!.logs),
|
||||
CustomListTile(
|
||||
icon: Icons.timer_rounded,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue