diff --git a/.gitignore b/.gitignore index 3a158cd4..1d3bae26 100644 --- a/.gitignore +++ b/.gitignore @@ -61,4 +61,5 @@ doc/api/ fvm google-services.json -example/ios/dist \ No newline at end of file +example/ios/dist +.vscode/ \ No newline at end of file diff --git a/lib/src/image_actions_modal.dart b/lib/src/image_actions_modal.dart index 7e50a4f7..fc81635c 100644 --- a/lib/src/image_actions_modal.dart +++ b/lib/src/image_actions_modal.dart @@ -149,19 +149,22 @@ class ImageActionsModal extends StatelessWidget { }), if (StreamChat.of(context).user.id == message.user.id) _buildButton( - context, - 'Delete', - StreamSvgIcon.delete( - size: 24.0, - color: Colors.black, - ), () { - Navigator.pop(context); - Navigator.pop(context); - StreamChat.of(context).client.deleteMessage( - message, - StreamChannel.of(context).channel.cid, - ); - }, color: Colors.red), + context, + 'Delete', + StreamSvgIcon.delete( + size: 24.0, + color: Color(0xffFF3742), + ), + () { + Navigator.pop(context); + Navigator.pop(context); + StreamChat.of(context).client.deleteMessage( + message, + StreamChannel.of(context).channel.cid, + ); + }, + color: Color(0xffFF3742), + ), ], ).toList(), ), diff --git a/lib/src/image_footer.dart b/lib/src/image_footer.dart index 51bb9009..7c39fb4c 100644 --- a/lib/src/image_footer.dart +++ b/lib/src/image_footer.dart @@ -621,7 +621,7 @@ class _ImageFooterState extends State { ], }); - await c.create(); + await c.watch(); final message = Message( text: text,