-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[image_picker] Add the ability to pick multiple videos - platform_interface #9804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
auto-submit
merged 21 commits into
flutter:main
from
stuartmorgan-g:add-pick-multi-video-platform-interface
Aug 14, 2025
+54
−2
Merged
Changes from 19 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
1a5afbf
I've added the `pickMultiVideo` feature to `image_picker`.
google-labs-jules[bot] 3ac98cd
Minor cleanup (analysis, autoformat, stale comments, changelog/versio…
stuartmorgan-g 528a6e7
Rework examples for testing and to reduce drift
stuartmorgan-g f2c219c
Android: Fix API version issue and add native tests
stuartmorgan-g 47086bb
iOS: Fix, and unify some older code flows
stuartmorgan-g acfbfd1
Simplify iOS Dart code
stuartmorgan-g 5dd0563
Merge branch 'main' into add-pick-multi-video
stuartmorgan-g 100beef
Fix hero tags
stuartmorgan-g 25f9458
Fix unguarded .first
stuartmorgan-g 0c60fd7
Update packages/image_picker/image_picker_android/android/src/main/ja…
stuartmorgan-g c3040d2
Fix unit test expectation handling
stuartmorgan-g b5d0098
Revert part of app-facing example change
stuartmorgan-g 21a2c50
Analysis fix
stuartmorgan-g 9ebcff3
Fix UIImagePicker code path
stuartmorgan-g 3c7e229
Merge branch 'main' into add-pick-multi-video-platform-interface
stuartmorgan-g 8306374
Revert non-p-i changes
stuartmorgan-g c711fc3
Revert method channel changes
stuartmorgan-g 86e96d1
Fix method name in changelog
stuartmorgan-g f7c6749
Add unit test
stuartmorgan-g 59c91a9
GCAfGH review fixes
stuartmorgan-g 886a7c4
Remove blank line
stuartmorgan-g File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
packages/image_picker/image_picker_platform_interface/CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...mage_picker/image_picker_platform_interface/lib/src/types/multi_video_picker_options.dart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright 2013 The Flutter Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
import 'package:flutter/foundation.dart'; | ||
|
||
/// Specifies options for picking multiple videos. | ||
@immutable | ||
class MultiVideoPickerOptions { | ||
/// Creates an instance with the given options. | ||
const MultiVideoPickerOptions({ | ||
this.maxDuration, | ||
this.limit, | ||
}); | ||
|
||
/// The maximum duration of the picked video. | ||
final Duration? maxDuration; | ||
|
||
/// The maximum number of videos that can be selected. | ||
/// | ||
/// This value may be ignored by platforms that cannot support it. | ||
final int? limit; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.