ui fix
This commit is contained in:
@@ -18,10 +18,6 @@ class FileAttachment extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Material(
|
return Material(
|
||||||
child: InkWell(
|
|
||||||
onTap: () {
|
|
||||||
//launchURL(context, attachment.assetUrl);
|
|
||||||
},
|
|
||||||
child: Container(
|
child: Container(
|
||||||
width: size?.width ?? 100,
|
width: size?.width ?? 100,
|
||||||
margin: trailing != null ? EdgeInsets.only(top: 4.0) : null,
|
margin: trailing != null ? EdgeInsets.only(top: 4.0) : null,
|
||||||
@@ -63,7 +59,6 @@ class FileAttachment extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -668,24 +668,19 @@ class _MessageWidgetState extends State<MessageWidget> {
|
|||||||
[];
|
[];
|
||||||
}
|
}
|
||||||
|
|
||||||
Padding wrapAttachmentWidget(
|
Widget wrapAttachmentWidget(
|
||||||
BuildContext context,
|
BuildContext context,
|
||||||
Widget attachmentWidget, {
|
Widget attachmentWidget, {
|
||||||
Attachment attachment,
|
Attachment attachment,
|
||||||
}) {
|
}) {
|
||||||
final attachmentShape =
|
final attachmentShape =
|
||||||
widget.attachmentShape ?? widget.shape ?? _getDefaultShape(context);
|
widget.attachmentShape ?? widget.shape ?? _getDefaultShape(context);
|
||||||
return Padding(
|
return GestureDetector(
|
||||||
padding: EdgeInsets.only(
|
|
||||||
bottom: 4,
|
|
||||||
),
|
|
||||||
child: GestureDetector(
|
|
||||||
onTap: () => retryMessage(context),
|
onTap: () => retryMessage(context),
|
||||||
onLongPress: () => onLongPress(context),
|
onLongPress: () => onLongPress(context),
|
||||||
child: Material(
|
child: Material(
|
||||||
color: attachment?.type == 'giphy'
|
color:
|
||||||
? Colors.white
|
attachment?.type == 'giphy' ? Colors.white : _getBackgroundColor(),
|
||||||
: _getBackgroundColor(),
|
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
shape: attachmentShape,
|
shape: attachmentShape,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
@@ -712,7 +707,6 @@ class _MessageWidgetState extends State<MessageWidget> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user