diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c2a43d1..cf901267 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.2.8+1 + +- Update LLC dependency +- Update file_picker dependency + ## 0.2.8 - Update LLC dependency diff --git a/lib/src/message_input.dart b/lib/src/message_input.dart index e0e3104b..4a20600f 100644 --- a/lib/src/message_input.dart +++ b/lib/src/message_input.dart @@ -738,7 +738,10 @@ class MessageInputState extends State { } else if (fileType == DefaultAttachmentTypes.file) { type = FileType.any; } - file = await FilePicker.getFile(type: type); + final res = await FilePicker.platform.pickFiles(type: type); + if (res?.files?.isNotEmpty == true) { + file = File(res.files.first.path); + } } setState(() { diff --git a/pubspec.yaml b/pubspec.yaml index 34a48b8f..6f751342 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: stream_chat_flutter homepage: https://github.com/GetStream/stream-chat-flutter description: Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter. -version: 0.2.8 +version: 0.2.8+1 repository: https://github.com/GetStream/stream-chat-flutter issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues @@ -20,10 +20,10 @@ dependencies: url_launcher: ^5.4.11 video_player: ^0.10.11+1 chewie: ^0.9.10 - file_picker: ^1.12.0 + file_picker: ^2.0.0 image_picker: ^0.6.7+2 flutter_keyboard_visibility: ^3.2.1 - stream_chat: ^0.2.5 + stream_chat: ^0.2.5+1 mime: ^0.9.6+3 visibility_detector: ^0.1.5 http_parser: ^3.1.4