mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-08 23:18:16 -07: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,
|
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(),
|
||||||
|
|
|
||||||
|
|
@ -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)),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue