Merge pull request #623 from wared2003/issue-622-reset-default-routing-algo-settings

Implements Issue #622: Add ability to reset routing algorithm settings to factory defaults.
This commit is contained in:
zjs81 authored and GitHub committed 2026-11-05 23:09:19 -07:00
commit 3eeb15cbff
41 files changed
+353 -11

No files matched your search

+32
View File
@@ -661,6 +661,38 @@ class AppSettingsScreen extends StatelessWidget {
],
),
),
const Divider(height: 1),
ListTile(
contentPadding: const EdgeInsets.symmetric(
horizontal: 16,
vertical: 4,
),
leading: const Icon(Icons.restart_alt, size: 24),
title: Text(
context.l10n.appSettings_resetRoutingToDefault,
),
subtitle: Text(
context
.l10n
.appSettings_resetRoutingToDefaultSubtitle,
),
trailing: const Icon(
Icons.keyboard_arrow_right,
size: 18,
),
onTap: () async {
await settingsService.resetRoutingSettingsToDefault();
if (context.mounted) {
showDismissibleSnackBar(
context,
content: Text(
context.l10n.appSettings_routingResetToDefault,
),
duration: const Duration(seconds: 2),
);
}
},
),
],
),
)