mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
fix: Small ui fixes
This commit is contained in:
parent
7cb23c1f53
commit
fedc00c65b
2 changed files with 3 additions and 4 deletions
|
|
@ -57,7 +57,7 @@ class UserIcon extends ConsumerWidget {
|
|||
alignment: Alignment.center,
|
||||
children: [
|
||||
ClipRRect(
|
||||
borderRadius: FladderTheme.defaultShape.borderRadius,
|
||||
borderRadius: FladderTheme.smallShape.borderRadius,
|
||||
child: CachedNetworkImage(
|
||||
imageUrl: user?.avatar ?? "",
|
||||
progressIndicatorBuilder: (context, url, progress) => placeHolder(),
|
||||
|
|
|
|||
|
|
@ -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)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue