From e0e43d62c47df8c72a69740381ec0b02fde188ac Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Tue, 23 May 2023 16:44:39 +0530 Subject: [PATCH 1/2] fix(ui): fix `WebOrDesktopAttachmentPickerOption` not using localized title. Signed-off-by: xsahil03x --- .../attachment_picker/stream_attachment_picker.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/stream_chat_flutter/lib/src/message_input/attachment_picker/stream_attachment_picker.dart b/packages/stream_chat_flutter/lib/src/message_input/attachment_picker/stream_attachment_picker.dart index 60e88103..c3de7e13 100644 --- a/packages/stream_chat_flutter/lib/src/message_input/attachment_picker/stream_attachment_picker.dart +++ b/packages/stream_chat_flutter/lib/src/message_input/attachment_picker/stream_attachment_picker.dart @@ -792,19 +792,19 @@ Widget webOrDesktopAttachmentPickerBuilder({ key: 'image-picker', type: AttachmentPickerType.images, icon: StreamSvgIcon.pictures(size: 36).toIconThemeSvgIcon(), - title: 'Upload a photo', + title: context.translations.uploadAPhotoLabel, ), WebOrDesktopAttachmentPickerOption( key: 'video-picker', type: AttachmentPickerType.videos, icon: StreamSvgIcon.record(size: 36).toIconThemeSvgIcon(), - title: 'Upload a video', + title: context.translations.uploadAVideoLabel, ), WebOrDesktopAttachmentPickerOption( key: 'file-picker', type: AttachmentPickerType.files, icon: StreamSvgIcon.files(size: 36).toIconThemeSvgIcon(), - title: 'Upload a file', + title: context.translations.uploadAFileLabel, ), }, onOptionTap: (context, controller, option) async { From 416d1f7f3276e1a4cccd74cd1a86d305dcd6f081 Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Tue, 23 May 2023 16:44:51 +0530 Subject: [PATCH 2/2] chore: update CHANGELOG.md Signed-off-by: xsahil03x --- packages/stream_chat_flutter/CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/stream_chat_flutter/CHANGELOG.md b/packages/stream_chat_flutter/CHANGELOG.md index 32259aba..5b909acd 100644 --- a/packages/stream_chat_flutter/CHANGELOG.md +++ b/packages/stream_chat_flutter/CHANGELOG.md @@ -16,6 +16,8 @@ image/data in Message link preview. - [[#1482]](https://github.com/GetStream/stream-chat-flutter/issues/1482) Fixed `StreaChannelListTile` not showing unread indicator when `currentUser` is not present in the initial member list. +- [[#1487]](https://github.com/GetStream/stream-chat-flutter/issues/1487) Use localized title + for `WebOrDesktopAttachmentPickerOption` in `StreamMessageInput`. ✅ Added