change bg to white
This commit is contained in:
@@ -31,9 +31,7 @@ class GiphyAttachment extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Container(
|
return Column(
|
||||||
color: Colors.white,
|
|
||||||
child: Column(
|
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
@@ -90,7 +88,6 @@ class GiphyAttachment extends StatelessWidget {
|
|||||||
message: message,
|
message: message,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -512,12 +512,12 @@ class _MessageWidgetState extends State<MessageWidget> {
|
|||||||
widget.message,
|
widget.message,
|
||||||
attachment,
|
attachment,
|
||||||
);
|
);
|
||||||
return wrapAttachmentWidget(context, attachmentWidget);
|
return wrapAttachmentWidget(context, attachmentWidget, attachment: attachment);
|
||||||
})?.toList() ??
|
})?.toList() ??
|
||||||
[];
|
[];
|
||||||
}
|
}
|
||||||
|
|
||||||
Padding wrapAttachmentWidget(BuildContext context, Widget attachmentWidget) {
|
Padding wrapAttachmentWidget(BuildContext context, Widget attachmentWidget, {Attachment attachment}) {
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: EdgeInsets.only(
|
padding: EdgeInsets.only(
|
||||||
bottom: 4,
|
bottom: 4,
|
||||||
@@ -526,7 +526,7 @@ class _MessageWidgetState extends State<MessageWidget> {
|
|||||||
onTap: () => retryMessage(context),
|
onTap: () => retryMessage(context),
|
||||||
onLongPress: () => onLongPress(context),
|
onLongPress: () => onLongPress(context),
|
||||||
child: Material(
|
child: Material(
|
||||||
color: _getBackgroundColor(),
|
color: attachment?.type == 'giphy' ? Colors.white : _getBackgroundColor(),
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
shape: widget.attachmentShape ??
|
shape: widget.attachmentShape ??
|
||||||
widget.shape ??
|
widget.shape ??
|
||||||
|
|||||||
Reference in New Issue
Block a user