fix(ui): fix WebOrDesktopAttachmentPickerOption not using localized title.
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
+3
-3
@@ -792,19 +792,19 @@ Widget webOrDesktopAttachmentPickerBuilder({
|
|||||||
key: 'image-picker',
|
key: 'image-picker',
|
||||||
type: AttachmentPickerType.images,
|
type: AttachmentPickerType.images,
|
||||||
icon: StreamSvgIcon.pictures(size: 36).toIconThemeSvgIcon(),
|
icon: StreamSvgIcon.pictures(size: 36).toIconThemeSvgIcon(),
|
||||||
title: 'Upload a photo',
|
title: context.translations.uploadAPhotoLabel,
|
||||||
),
|
),
|
||||||
WebOrDesktopAttachmentPickerOption(
|
WebOrDesktopAttachmentPickerOption(
|
||||||
key: 'video-picker',
|
key: 'video-picker',
|
||||||
type: AttachmentPickerType.videos,
|
type: AttachmentPickerType.videos,
|
||||||
icon: StreamSvgIcon.record(size: 36).toIconThemeSvgIcon(),
|
icon: StreamSvgIcon.record(size: 36).toIconThemeSvgIcon(),
|
||||||
title: 'Upload a video',
|
title: context.translations.uploadAVideoLabel,
|
||||||
),
|
),
|
||||||
WebOrDesktopAttachmentPickerOption(
|
WebOrDesktopAttachmentPickerOption(
|
||||||
key: 'file-picker',
|
key: 'file-picker',
|
||||||
type: AttachmentPickerType.files,
|
type: AttachmentPickerType.files,
|
||||||
icon: StreamSvgIcon.files(size: 36).toIconThemeSvgIcon(),
|
icon: StreamSvgIcon.files(size: 36).toIconThemeSvgIcon(),
|
||||||
title: 'Upload a file',
|
title: context.translations.uploadAFileLabel,
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
onOptionTap: (context, controller, option) async {
|
onOptionTap: (context, controller, option) async {
|
||||||
|
|||||||
Reference in New Issue
Block a user