fix: giphy fix, fmt
This commit is contained in:
@@ -63,15 +63,20 @@ class GiphyAttachment extends StatelessWidget {
|
|||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
Navigator.push(context, MaterialPageRoute(builder: (_) {
|
Navigator.push(context, MaterialPageRoute(builder: (_) {
|
||||||
return FullScreenImage(
|
final channel = StreamChannel.of(context).channel;
|
||||||
urls: [
|
|
||||||
attachment.imageUrl ??
|
return StreamChannel(
|
||||||
attachment.assetUrl ??
|
channel: channel,
|
||||||
attachment.thumbUrl
|
child: FullScreenImage(
|
||||||
],
|
urls: [
|
||||||
userName: message.user.name,
|
attachment.imageUrl ??
|
||||||
sentAt: message.createdAt,
|
attachment.assetUrl ??
|
||||||
message: message,
|
attachment.thumbUrl
|
||||||
|
],
|
||||||
|
userName: message.user.name,
|
||||||
|
sentAt: message.createdAt,
|
||||||
|
message: message,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}));
|
}));
|
||||||
},
|
},
|
||||||
@@ -286,15 +291,20 @@ class GiphyAttachment extends StatelessWidget {
|
|||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
Navigator.push(context, MaterialPageRoute(builder: (_) {
|
Navigator.push(context, MaterialPageRoute(builder: (_) {
|
||||||
return FullScreenImage(
|
var channel = StreamChannel.of(context).channel;
|
||||||
urls: [
|
|
||||||
attachment.imageUrl ??
|
return StreamChannel(
|
||||||
attachment.assetUrl ??
|
channel: channel,
|
||||||
attachment.thumbUrl
|
child: FullScreenImage(
|
||||||
],
|
urls: [
|
||||||
userName: message.user.name,
|
attachment.imageUrl ??
|
||||||
sentAt: message.createdAt,
|
attachment.assetUrl ??
|
||||||
message: message,
|
attachment.thumbUrl
|
||||||
|
],
|
||||||
|
userName: message.user.name,
|
||||||
|
sentAt: message.createdAt,
|
||||||
|
message: message,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}));
|
}));
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -159,7 +159,8 @@ class ImageActionsModal extends StatelessWidget {
|
|||||||
dense: true,
|
dense: true,
|
||||||
title: Text(
|
title: Text(
|
||||||
title,
|
title,
|
||||||
style: color == null ? titleStyle : titleStyle.copyWith(color: color),
|
style:
|
||||||
|
color == null ? titleStyle : titleStyle.copyWith(color: color),
|
||||||
),
|
),
|
||||||
leading: Icon(
|
leading: Icon(
|
||||||
iconData,
|
iconData,
|
||||||
|
|||||||
Reference in New Issue
Block a user