fix button color and watch channel

This commit is contained in:
Salvatore Giordano
2020-12-02 14:41:08 +01:00
parent 8acdd0939a
commit 4eadc49e47
3 changed files with 19 additions and 15 deletions
+2 -1
View File
@@ -61,4 +61,5 @@ doc/api/
fvm
google-services.json
example/ios/dist
example/ios/dist
.vscode/
+16 -13
View File
@@ -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(),
),
+1 -1
View File
@@ -609,7 +609,7 @@ class _ImageFooterState extends State<ImageFooter> {
],
});
await c.create();
await c.watch();
final message = Message(
text: text,