Skip to content

Commit a0ca1ac

Browse files
[image_picker] Updates min SDK to 3.29 (flutter#9830)
For the `image_picker` packages: - Updates the min SDK version to 3.29 - Runs the autoformatter with the new format - Update code excerpts This does not update versions because pushing format changes (even in READMEs) isn't worth doing a release that drops an SDK version (which we don't normally version) Prep for flutter#9816
1 parent 65be884 commit a0ca1ac

File tree

76 files changed

+5016
-4116
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+5016
-4116
lines changed

packages/image_picker/image_picker/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## NEXT
2+
3+
* Updates minimum supported SDK version to Flutter 3.29/Dart 3.7.
4+
15
## 1.2.0
26

37
* Adds `pickMultiVideo` to allow selecting multiple videos from the gallery.

packages/image_picker/image_picker/README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,16 +124,18 @@ import 'package:image_picker_platform_interface/image_picker_platform_interface.
124124
// ···
125125
class MyCameraDelegate extends ImagePickerCameraDelegate {
126126
@override
127-
Future<XFile?> takePhoto(
128-
{ImagePickerCameraDelegateOptions options =
129-
const ImagePickerCameraDelegateOptions()}) async {
127+
Future<XFile?> takePhoto({
128+
ImagePickerCameraDelegateOptions options =
129+
const ImagePickerCameraDelegateOptions(),
130+
}) async {
130131
return _takeAPhoto(options.preferredCameraDevice);
131132
}
132133
133134
@override
134-
Future<XFile?> takeVideo(
135-
{ImagePickerCameraDelegateOptions options =
136-
const ImagePickerCameraDelegateOptions()}) async {
135+
Future<XFile?> takeVideo({
136+
ImagePickerCameraDelegateOptions options =
137+
const ImagePickerCameraDelegateOptions(),
138+
}) async {
137139
return _takeAVideo(options.preferredCameraDevice);
138140
}
139141
}
@@ -172,8 +174,9 @@ final XFile? image = await picker.pickImage(source: ImageSource.gallery);
172174
// Capture a photo.
173175
final XFile? photo = await picker.pickImage(source: ImageSource.camera);
174176
// Pick a video.
175-
final XFile? galleryVideo =
176-
await picker.pickVideo(source: ImageSource.gallery);
177+
final XFile? galleryVideo = await picker.pickVideo(
178+
source: ImageSource.gallery,
179+
);
177180
// Capture a video.
178181
final XFile? cameraVideo = await picker.pickVideo(source: ImageSource.camera);
179182
// Pick multiple images.

0 commit comments

Comments
 (0)