This commit is contained in:
Salvatore Giordano
2020-12-03 11:39:38 +01:00
parent 9918a4bfde
commit 3d92d5fc32
2 changed files with 63 additions and 74 deletions
-5
View File
@@ -18,10 +18,6 @@ class FileAttachment extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Material(
child: InkWell(
onTap: () {
//launchURL(context, attachment.assetUrl);
},
child: Container(
width: size?.width ?? 100,
margin: trailing != null ? EdgeInsets.only(top: 4.0) : null,
@@ -63,7 +59,6 @@ class FileAttachment extends StatelessWidget {
),
),
),
),
);
}
+4 -10
View File
@@ -668,24 +668,19 @@ class _MessageWidgetState extends State<MessageWidget> {
[];
}
Padding wrapAttachmentWidget(
Widget wrapAttachmentWidget(
BuildContext context,
Widget attachmentWidget, {
Attachment attachment,
}) {
final attachmentShape =
widget.attachmentShape ?? widget.shape ?? _getDefaultShape(context);
return Padding(
padding: EdgeInsets.only(
bottom: 4,
),
child: GestureDetector(
return GestureDetector(
onTap: () => retryMessage(context),
onLongPress: () => onLongPress(context),
child: Material(
color: attachment?.type == 'giphy'
? Colors.white
: _getBackgroundColor(),
color:
attachment?.type == 'giphy' ? Colors.white : _getBackgroundColor(),
clipBehavior: Clip.hardEdge,
shape: attachmentShape,
child: Padding(
@@ -712,7 +707,6 @@ class _MessageWidgetState extends State<MessageWidget> {
),
),
),
),
);
}