fix(ui): fix giphy attachment tap callback
This commit is contained in:
@@ -253,22 +253,7 @@ class GiphyAttachment extends AttachmentWidget {
|
|||||||
Widget _buildSentAttachment(BuildContext context, String imageUrl) =>
|
Widget _buildSentAttachment(BuildContext context, String imageUrl) =>
|
||||||
SizedBox(
|
SizedBox(
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
onTap: () async {
|
onTap: () => onAttachmentTap ?? _onImageTap(context),
|
||||||
final res =
|
|
||||||
await Navigator.push(context, MaterialPageRoute(builder: (_) {
|
|
||||||
final channel = StreamChannel.of(context).channel;
|
|
||||||
return StreamChannel(
|
|
||||||
channel: channel,
|
|
||||||
child: FullScreenMedia(
|
|
||||||
mediaAttachments: [attachment],
|
|
||||||
userName: message.user?.name,
|
|
||||||
message: message,
|
|
||||||
onShowMessage: onShowMessage,
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}));
|
|
||||||
if (res != null) onReturnAction!(res);
|
|
||||||
},
|
|
||||||
child: Stack(
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
CachedNetworkImage(
|
CachedNetworkImage(
|
||||||
|
|||||||
Reference in New Issue
Block a user