fix: Small ui fixes

This commit is contained in:
PartyDonut 2025-10-04 14:00:57 +02:00
parent 7cb23c1f53
commit fedc00c65b
2 changed files with 3 additions and 4 deletions

View file

@ -53,10 +53,9 @@ class _SelectableIconButtonState extends ConsumerState<SelectableIconButton> {
child: ElevatedButton(
style: ButtonStyle(
side: buttonState,
elevation: WidgetStatePropertyAll(
widget.backgroundColor != null ? (widget.backgroundColor!.a < 1 ? 0 : null) : null),
elevation: const WidgetStatePropertyAll(0),
backgroundColor: WidgetStatePropertyAll(
widget.backgroundColor ?? (widget.selected ? theme.primaryContainer : theme.surfaceContainerHigh)),
widget.backgroundColor ?? (widget.selected ? theme.primaryContainer : theme.surfaceContainerLow)),
iconColor: WidgetStatePropertyAll(widget.iconColor ?? (widget.selected ? theme.onPrimaryContainer : null)),
foregroundColor:
WidgetStatePropertyAll(widget.iconColor ?? (widget.selected ? theme.onPrimaryContainer : null)),