Fix clear button

This commit is contained in:
Ankit Mahato
2025-04-06 04:12:05 +05:30
parent afb899a356
commit d037caee2d

View File

@ -163,11 +163,11 @@ class SettingsPage extends ConsumerWidget {
subtitle: const Text('Delete all requests data from the disk'),
trailing: FilledButton.tonalIcon(
style: FilledButton.styleFrom(
backgroundColor: settings.isDark
? kColorDarkDanger
: kColorLightDanger,
surfaceTintColor: kColorRed,
foregroundColor: Theme.of(context).colorScheme.onPrimary),
backgroundColor:
settings.isDark ? kColorDarkDanger : kColorLightDanger,
surfaceTintColor: kColorRed,
foregroundColor: Theme.of(context).colorScheme.onPrimary,
),
onPressed: clearingData
? null
: () => showDialog<String>(
@ -217,9 +217,10 @@ class SettingsPage extends ConsumerWidget {
),
),
label: const Text("Clear"),
icon: const Icon(
icon: Icon(
Icons.delete_forever_rounded,
size: 20,
color: Theme.of(context).colorScheme.onPrimary,
),
),
),