removed clipping from user avatar
This commit is contained in:
@@ -68,32 +68,35 @@ class UserAvatar extends StatelessWidget {
|
|||||||
|
|
||||||
Widget avatar = FittedBox(
|
Widget avatar = FittedBox(
|
||||||
fit: BoxFit.cover,
|
fit: BoxFit.cover,
|
||||||
child: hasImage
|
child: Container(
|
||||||
? CachedNetworkImage(
|
constraints: constraints ??
|
||||||
fit: BoxFit.cover,
|
streamChatTheme.ownMessageTheme.avatarTheme?.constraints,
|
||||||
filterQuality: FilterQuality.high,
|
child: hasImage
|
||||||
imageUrl: user.image!,
|
? CachedNetworkImage(
|
||||||
imageBuilder: (context, imageProvider) => Container(
|
fit: BoxFit.cover,
|
||||||
constraints: constraints ??
|
filterQuality: FilterQuality.high,
|
||||||
streamChatTheme.ownMessageTheme.avatarTheme?.constraints,
|
imageUrl: user.image!,
|
||||||
decoration: BoxDecoration(
|
errorWidget: (context, __, ___) =>
|
||||||
borderRadius: borderRadius ??
|
streamChatTheme.defaultUserImage(context, user),
|
||||||
streamChatTheme.ownMessageTheme.avatarTheme?.borderRadius,
|
placeholder: placeholder != null
|
||||||
image:
|
? (context, __) => placeholder(context, user)
|
||||||
DecorationImage(image: imageProvider, fit: BoxFit.cover),
|
: null,
|
||||||
|
imageBuilder: (context, imageProvider) => Container(
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
borderRadius: borderRadius ??
|
||||||
|
streamChatTheme
|
||||||
|
.ownMessageTheme.avatarTheme?.borderRadius,
|
||||||
|
image: DecorationImage(
|
||||||
|
image: imageProvider, fit: BoxFit.cover),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
|
)
|
||||||
|
: ClipRRect(
|
||||||
|
borderRadius: borderRadius ??
|
||||||
|
streamChatTheme.ownMessageTheme.avatarTheme?.borderRadius,
|
||||||
|
child: streamChatTheme.defaultUserImage(context, user),
|
||||||
),
|
),
|
||||||
errorWidget: (context, __, ___) =>
|
),
|
||||||
streamChatTheme.defaultUserImage(context, user),
|
|
||||||
placeholder: placeholder != null
|
|
||||||
? (context, __) => placeholder(context, user)
|
|
||||||
: null,
|
|
||||||
)
|
|
||||||
: ClipRRect(
|
|
||||||
borderRadius: borderRadius ??
|
|
||||||
streamChatTheme.ownMessageTheme.avatarTheme?.borderRadius,
|
|
||||||
child: streamChatTheme.defaultUserImage(context, user),
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if (selected) {
|
if (selected) {
|
||||||
|
|||||||
Reference in New Issue
Block a user