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

@ -57,7 +57,7 @@ class UserIcon extends ConsumerWidget {
alignment: Alignment.center, alignment: Alignment.center,
children: [ children: [
ClipRRect( ClipRRect(
borderRadius: FladderTheme.defaultShape.borderRadius, borderRadius: FladderTheme.smallShape.borderRadius,
child: CachedNetworkImage( child: CachedNetworkImage(
imageUrl: user?.avatar ?? "", imageUrl: user?.avatar ?? "",
progressIndicatorBuilder: (context, url, progress) => placeHolder(), progressIndicatorBuilder: (context, url, progress) => placeHolder(),

View file

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