fix link image size
This commit is contained in:
@@ -842,6 +842,8 @@ class _MessageWidgetState extends State<MessageWidget> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void onLongPress(BuildContext context) {
|
void onLongPress(BuildContext context) {
|
||||||
|
print(
|
||||||
|
'widget.message.attachment[0].toJson(): ${widget.message.attachments[0].imageUrl}');
|
||||||
if (widget.message.isEphemeral ||
|
if (widget.message.isEphemeral ||
|
||||||
widget.message.status == MessageSendingStatus.SENDING) {
|
widget.message.status == MessageSendingStatus.SENDING) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -34,10 +34,10 @@ class UrlAttachment extends StatelessWidget {
|
|||||||
margin: EdgeInsets.symmetric(horizontal: 8.0),
|
margin: EdgeInsets.symmetric(horizontal: 8.0),
|
||||||
child: Stack(
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
Center(
|
CachedNetworkImage(
|
||||||
child: CachedNetworkImage(
|
width: double.infinity,
|
||||||
imageUrl: urlAttachment.imageUrl,
|
imageUrl: urlAttachment.imageUrl,
|
||||||
),
|
fit: BoxFit.cover,
|
||||||
),
|
),
|
||||||
Positioned(
|
Positioned(
|
||||||
left: 0.0,
|
left: 0.0,
|
||||||
|
|||||||
Reference in New Issue
Block a user