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
+1
View File
@@ -62,3 +62,4 @@ doc/api/
fvm fvm
google-services.json google-services.json
example/ios/dist example/ios/dist
.vscode/
+6 -3
View File
@@ -153,15 +153,18 @@ class ImageActionsModal extends StatelessWidget {
'Delete', 'Delete',
StreamSvgIcon.delete( StreamSvgIcon.delete(
size: 24.0, size: 24.0,
color: Colors.black, color: Color(0xffFF3742),
), () { ),
() {
Navigator.pop(context); Navigator.pop(context);
Navigator.pop(context); Navigator.pop(context);
StreamChat.of(context).client.deleteMessage( StreamChat.of(context).client.deleteMessage(
message, message,
StreamChannel.of(context).channel.cid, StreamChannel.of(context).channel.cid,
); );
}, color: Colors.red), },
color: Color(0xffFF3742),
),
], ],
).toList(), ).toList(),
), ),
+1 -1
View File
@@ -609,7 +609,7 @@ class _ImageFooterState extends State<ImageFooter> {
], ],
}); });
await c.create(); await c.watch();
final message = Message( final message = Message(
text: text, text: text,