change bg to white

This commit is contained in:
Deven Joshi
2020-11-02 15:50:19 +05:30
parent 950d852b0c
commit 5488fde66e
2 changed files with 54 additions and 57 deletions
+3 -3
View File
@@ -512,12 +512,12 @@ class _MessageWidgetState extends State<MessageWidget> {
widget.message,
attachment,
);
return wrapAttachmentWidget(context, attachmentWidget);
return wrapAttachmentWidget(context, attachmentWidget, attachment: attachment);
})?.toList() ??
[];
}
Padding wrapAttachmentWidget(BuildContext context, Widget attachmentWidget) {
Padding wrapAttachmentWidget(BuildContext context, Widget attachmentWidget, {Attachment attachment}) {
return Padding(
padding: EdgeInsets.only(
bottom: 4,
@@ -526,7 +526,7 @@ class _MessageWidgetState extends State<MessageWidget> {
onTap: () => retryMessage(context),
onLongPress: () => onLongPress(context),
child: Material(
color: _getBackgroundColor(),
color: attachment?.type == 'giphy' ? Colors.white : _getBackgroundColor(),
clipBehavior: Clip.hardEdge,
shape: widget.attachmentShape ??
widget.shape ??