fix: fixed onShowMessage not showing up for some aspects

This commit is contained in:
Deven Joshi
2021-01-04 16:22:08 +05:30
parent 95d91f3959
commit 74cff7576b
5 changed files with 22 additions and 11 deletions
+8 -5
View File
@@ -223,11 +223,14 @@ class _ChatInfoScreenState extends State<ChatInfoScreen> {
if (channel.state == null) {
await channel.watch();
}
Navigator.pop(context);
Navigator.pop(context);
Navigator.pop(context);
Navigator.pop(context);
Navigator.pop(context);
await Navigator.pop(context);
await Future.delayed(Duration(milliseconds: 200));
await Navigator.pop(context);
await Future.delayed(Duration(milliseconds: 200));
await Navigator.pop(context);
await Future.delayed(Duration(milliseconds: 200));
await Navigator.pop(context);
await Navigator.pop(context);
Navigator.pushNamed(
context,
Routes.CHANNEL_PAGE,
+9 -6
View File
@@ -496,12 +496,15 @@ class _GroupInfoScreenState extends State<GroupInfoScreen> {
if (channel.state == null) {
await channel.watch();
}
Navigator.pop(context);
Navigator.pop(context);
Navigator.pop(context);
Navigator.pop(context);
Navigator.pop(context);
Navigator.pushNamed(
await Navigator.pop(context);
await Future.delayed(Duration(milliseconds: 200));
await Navigator.pop(context);
await Future.delayed(Duration(milliseconds: 200));
await Navigator.pop(context);
await Future.delayed(Duration(milliseconds: 200));
await Navigator.pop(context);
await Navigator.pop(context);
await Navigator.pushNamed(
context,
Routes.CHANNEL_PAGE,
arguments: ChannelPageArgs(
+1
View File
@@ -330,6 +330,7 @@ class GiphyAttachment extends StatelessWidget {
userName: message.user.name,
sentAt: message.createdAt,
message: message,
onShowMessage: onShowMessage,
),
);
}));
+3
View File
@@ -10,11 +10,13 @@ class ImageGroup extends StatelessWidget {
@required this.images,
@required this.message,
@required this.size,
this.onShowMessage,
}) : super(key: key);
final List<Attachment> images;
final Message message;
final Size size;
final ShowMessageCallback onShowMessage;
@override
Widget build(BuildContext context) {
@@ -119,6 +121,7 @@ class ImageGroup extends StatelessWidget {
userName: message.user.name,
sentAt: message.createdAt,
message: message,
onShowMessage: onShowMessage,
),
),
),
+1
View File
@@ -736,6 +736,7 @@ class _MessageWidgetState extends State<MessageWidget> {
),
images: images,
message: widget.message,
onShowMessage: widget.onShowMessage,
),
),
),