Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/image_picker/image_picker_linux/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## NEXT
## 0.2.1+2

* Updates minimum supported SDK version to Flutter 3.22/Dart 3.4.
* Fixes `getMedia` mime types.

## 0.2.1+1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ class ImagePickerLinux extends CameraDelegatingImagePickerPlatform {
@override
Future<List<XFile>> getMedia({required MediaOptions options}) async {
const XTypeGroup typeGroup = XTypeGroup(
label: 'images and videos', extensions: <String>['image/*', 'video/*']);
label: 'Images and videos',
mimeTypes: <String>['image/*', 'video/*'],
);

List<XFile> files;

Expand Down
2 changes: 1 addition & 1 deletion packages/image_picker/image_picker_linux/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: image_picker_linux
description: Linux platform implementation of image_picker
repository: https://github.com/flutter/packages/tree/main/packages/image_picker/image_picker_linux
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+image_picker%22
version: 0.2.1+1
version: 0.2.1+2

environment:
sdk: ^3.4.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void main() {
final VerificationResult result = verify(
mockFileSelectorPlatform.openFiles(
acceptedTypeGroups: captureAnyNamed('acceptedTypeGroups')));
expect(capturedTypeGroups(result)[0].extensions,
expect(capturedTypeGroups(result)[0].mimeTypes,
<String>['image/*', 'video/*']);
});

Expand Down