mirror of
https://github.com/foss42/apidash.git
synced 2025-08-06 13:51:20 +08:00
Fix clear button
This commit is contained in:
@ -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,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
Reference in New Issue
Block a user