chore: migrate and update tests.

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2023-06-20 14:43:13 +05:30
committed by xsahil03x
parent 84b50fc852
commit c6f64fdc96
25 changed files with 311 additions and 412 deletions
@@ -36,7 +36,7 @@ class StreamAttachmentUploadStateBuilder extends StatelessWidget {
@override
Widget build(BuildContext context) {
if (message.status == MessageSendingStatus.sent) {
if (message.state.isCompleted) {
return const Offstage();
}
@@ -216,7 +216,7 @@ class _FailedState extends StatelessWidget {
horizontal: 12,
),
child: Text(
context.translations.uploadErrorLabel,
error ?? 'Failed to upload file',
style: theme.textTheme.footnote.copyWith(
color: theme.colorTheme.barsBg,
),
@@ -236,7 +236,7 @@ class _Trailing extends StatelessWidget {
final channel = StreamChannel.of(context).channel;
final attachmentId = attachment.id;
if (message.status == MessageSendingStatus.sent) {
if (message.state.isCompleted) {
return IconButton(
icon: StreamSvgIcon.cloudDownload(
color: theme.colorTheme.textHighEmphasis,