🐛 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,
|
||||
color: Theme.of(context).colorScheme.primaryContainer,
|
||||
child:
|
||||
fileId == null
|
||||
file != null
|
||||
? CloudFileWidget(item: file!, fit: BoxFit.cover)
|
||||
: fileId == null
|
||||
? Icon(
|
||||
fallbackIcon ?? Symbols.account_circle,
|
||||
size: radius,
|
||||
@ -131,8 +133,6 @@ class ProfilePictureWidget extends ConsumerWidget {
|
||||
fallbackColor ??
|
||||
Theme.of(context).colorScheme.onPrimaryContainer,
|
||||
).center()
|
||||
: file != null
|
||||
? CloudFileWidget(item: file!, fit: BoxFit.cover)
|
||||
: UniversalImage(uri: uri, fit: BoxFit.cover),
|
||||
),
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user