update sending indicator

This commit is contained in:
Salvatore Giordano
2020-06-18 11:03:28 +02:00
parent 5b5c390c82
commit 8fc314d942
5 changed files with 45 additions and 17 deletions
+8
View File
@@ -4,14 +4,22 @@ import 'package:stream_chat_flutter/stream_chat_flutter.dart';
/// Used to show the sending status of the message
class SendingIndicator extends StatelessWidget {
final Message message;
final bool allRead;
const SendingIndicator({
Key key,
this.message,
this.allRead = false,
}) : super(key: key);
@override
Widget build(BuildContext context) {
if (allRead) {
return Icon(
Icons.done_all,
size: 8,
);
}
if (message.status == MessageSendingStatus.SENT || message.status == null) {
return Icon(
Icons.done,