fix: giphy fix, fmt

This commit is contained in:
Deven Joshi
2020-11-24 16:32:50 +05:30
parent 8640f2b4f9
commit 146204ed3a
2 changed files with 30 additions and 19 deletions
+28 -18
View File
@@ -63,15 +63,20 @@ class GiphyAttachment extends StatelessWidget {
child: GestureDetector(
onTap: () {
Navigator.push(context, MaterialPageRoute(builder: (_) {
return FullScreenImage(
urls: [
attachment.imageUrl ??
attachment.assetUrl ??
attachment.thumbUrl
],
userName: message.user.name,
sentAt: message.createdAt,
message: message,
final channel = StreamChannel.of(context).channel;
return StreamChannel(
channel: channel,
child: FullScreenImage(
urls: [
attachment.imageUrl ??
attachment.assetUrl ??
attachment.thumbUrl
],
userName: message.user.name,
sentAt: message.createdAt,
message: message,
),
);
}));
},
@@ -286,15 +291,20 @@ class GiphyAttachment extends StatelessWidget {
child: GestureDetector(
onTap: () {
Navigator.push(context, MaterialPageRoute(builder: (_) {
return FullScreenImage(
urls: [
attachment.imageUrl ??
attachment.assetUrl ??
attachment.thumbUrl
],
userName: message.user.name,
sentAt: message.createdAt,
message: message,
var channel = StreamChannel.of(context).channel;
return StreamChannel(
channel: channel,
child: FullScreenImage(
urls: [
attachment.imageUrl ??
attachment.assetUrl ??
attachment.thumbUrl
],
userName: message.user.name,
sentAt: message.createdAt,
message: message,
),
);
}));
},
+2 -1
View File
@@ -159,7 +159,8 @@ class ImageActionsModal extends StatelessWidget {
dense: true,
title: Text(
title,
style: color == null ? titleStyle : titleStyle.copyWith(color: color),
style:
color == null ? titleStyle : titleStyle.copyWith(color: color),
),
leading: Icon(
iconData,