Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
Simplify iOS Dart code
  • Loading branch information
stuartmorgan-g committed Aug 8, 2025
commit acfbfd1d6129fcce4ef12e399106b37642eb2724
Original file line number Diff line number Diff line change
Expand Up @@ -327,16 +327,9 @@ class ImagePickerIOS extends ImagePickerPlatform {
Future<List<XFile>> getMultiVideoWithOptions({
MultiVideoPickerOptions options = const MultiVideoPickerOptions(),
}) async {
final List<String> paths = await _pickMultiVideoAsPath(
options: options,
);
return paths.map((String path) => XFile(path)).toList();
}

Future<List<String>> _pickMultiVideoAsPath({
MultiVideoPickerOptions options = const MultiVideoPickerOptions(),
}) {
return _hostApi.pickMultiVideo(
options.maxDuration?.inSeconds, options.limit);
return (await _hostApi.pickMultiVideo(
options.maxDuration?.inSeconds, options.limit))
.map((String path) => XFile(path))
.toList();
}
}