Add auto ip check option

This commit is contained in:
problematicconsumer
2024-02-17 13:11:50 +03:30
parent 71fb84bea1
commit 611dff8a5b
5 changed files with 38 additions and 2 deletions

View File

@@ -55,6 +55,12 @@ class GeneralSettingTiles extends HookConsumerWidget {
},
),
const EnableAnalyticsPrefTile(),
SwitchListTile(
title: Text(t.settings.general.autoIpCheck),
secondary: const Icon(FluentIcons.globe_search_24_regular),
value: ref.watch(autoCheckIpProvider),
onChanged: ref.read(autoCheckIpProvider.notifier).update,
),
if (Platform.isAndroid) ...[
SwitchListTile(
title: Text(t.settings.general.dynamicNotification),