chore: migrate and update tests.
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
+2
-2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user