[ImageFooter] Add border and boxshadow to media user avatar
Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
@@ -262,16 +262,28 @@ class _ImageFooterState extends State<ImageFooter> {
|
|||||||
media,
|
media,
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.all(8.0),
|
padding: EdgeInsets.all(8.0),
|
||||||
child: Align(
|
child: Container(
|
||||||
alignment: Alignment.topLeft,
|
clipBehavior: Clip.antiAlias,
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
shape: BoxShape.circle,
|
||||||
|
color: StreamChatTheme.of(context)
|
||||||
|
.colorTheme
|
||||||
|
.white
|
||||||
|
.withOpacity(0.6),
|
||||||
|
boxShadow: [
|
||||||
|
BoxShadow(
|
||||||
|
blurRadius: 8.0,
|
||||||
|
color: StreamChatTheme.of(context)
|
||||||
|
.colorTheme
|
||||||
|
.black
|
||||||
|
.withOpacity(0.3),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
padding: const EdgeInsets.all(1),
|
||||||
child: UserAvatar(
|
child: UserAvatar(
|
||||||
user: widget.message.user,
|
user: widget.message.user,
|
||||||
constraints: BoxConstraints.tight(
|
constraints: BoxConstraints.tight(Size(24, 24)),
|
||||||
Size(
|
|
||||||
24,
|
|
||||||
24,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
showOnlineStatus: false,
|
showOnlineStatus: false,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user