🐛 Fix profile picture has no content
This commit is contained in:
parent
49bc6b9a98
commit
280c261ea1
@ -123,7 +123,9 @@ class ProfilePictureWidget extends ConsumerWidget {
|
|||||||
height: radius * 2,
|
height: radius * 2,
|
||||||
color: Theme.of(context).colorScheme.primaryContainer,
|
color: Theme.of(context).colorScheme.primaryContainer,
|
||||||
child:
|
child:
|
||||||
fileId == null
|
file != null
|
||||||
|
? CloudFileWidget(item: file!, fit: BoxFit.cover)
|
||||||
|
: fileId == null
|
||||||
? Icon(
|
? Icon(
|
||||||
fallbackIcon ?? Symbols.account_circle,
|
fallbackIcon ?? Symbols.account_circle,
|
||||||
size: radius,
|
size: radius,
|
||||||
@ -131,8 +133,6 @@ class ProfilePictureWidget extends ConsumerWidget {
|
|||||||
fallbackColor ??
|
fallbackColor ??
|
||||||
Theme.of(context).colorScheme.onPrimaryContainer,
|
Theme.of(context).colorScheme.onPrimaryContainer,
|
||||||
).center()
|
).center()
|
||||||
: file != null
|
|
||||||
? CloudFileWidget(item: file!, fit: BoxFit.cover)
|
|
||||||
: UniversalImage(uri: uri, fit: BoxFit.cover),
|
: UniversalImage(uri: uri, fit: BoxFit.cover),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user