Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

[image_picker_windows] Annotate XTypeGroup constructor with // ignore: prefer_const_constructors #6504

Merged
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ class ImagePickerWindows extends ImagePickerPlatform {
'ImageSource.gallery is currently the only supported source on Windows');
}
final XTypeGroup typeGroup =
// TODO(stuartmorgan): https://github.com/flutter/flutter/issues/111906
// ignore: prefer_const_constructors
XTypeGroup(label: 'images', extensions: imageFormats);
final XFile? file = await fileSelector
.openFile(acceptedTypeGroups: <XTypeGroup>[typeGroup]);
Expand All @@ -143,6 +145,8 @@ class ImagePickerWindows extends ImagePickerPlatform {
'ImageSource.gallery is currently the only supported source on Windows');
}
final XTypeGroup typeGroup =
// TODO(stuartmorgan): https://github.com/flutter/flutter/issues/111906
// ignore: prefer_const_constructors
XTypeGroup(label: 'videos', extensions: videoFormats);
final XFile? file = await fileSelector
.openFile(acceptedTypeGroups: <XTypeGroup>[typeGroup]);
Expand All @@ -159,6 +163,8 @@ class ImagePickerWindows extends ImagePickerPlatform {
int? imageQuality,
}) async {
final XTypeGroup typeGroup =
// TODO(stuartmorgan): https://github.com/flutter/flutter/issues/111906
// ignore: prefer_const_constructors
XTypeGroup(label: 'images', extensions: imageFormats);
final List<XFile> files = await fileSelector
.openFiles(acceptedTypeGroups: <XTypeGroup>[typeGroup]);
Expand Down