Merge pull request #1214 from GetStream/hotfix/filePicker
fix(ui): request permission only when showing the picker
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
- [[#996]](https://github.com/GetStream/stream-chat-flutter/issues/996) Videos break bottom photo
|
||||
carousal.
|
||||
- Fix: URLs with path and/or query params are not enriched.
|
||||
- [[#1194]](https://github.com/GetStream/stream-chat-flutter/issues/1194) Request permission to access gallery when opening the file picker.
|
||||
|
||||
✅ Added
|
||||
|
||||
|
||||
@@ -282,6 +282,7 @@ class _StreamAttachmentPickerState extends State<StreamAttachmentPicker> {
|
||||
.iconBuilder(context, _filePickerIndex == i + 1),
|
||||
),
|
||||
const Spacer(),
|
||||
if (widget.isOpen)
|
||||
FutureBuilder(
|
||||
future: PhotoManager.requestPermissionExtend(),
|
||||
builder: (context, snapshot) {
|
||||
|
||||
Reference in New Issue
Block a user