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

Commit 5886aa1

Browse files
committed
run auto-formatter
1 parent 0e55909 commit 5886aa1

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

packages/image_picker/image_picker/example/lib/main.dart

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ class _MyHomePageState extends State<MyHomePage> {
106106
}
107107
});
108108
} else {
109-
await _displayPickImageDialog(context!,
110-
(double? maxWidth, double? maxHeight, int? quality, bool forceFullMetadata) async {
109+
await _displayPickImageDialog(context!, (double? maxWidth,
110+
double? maxHeight, int? quality, bool forceFullMetadata) async {
111111
try {
112112
final pickedFile = await _picker.pickImage(
113113
source: source,
@@ -367,13 +367,15 @@ class _MyHomePageState extends State<MyHomePage> {
367367
children: <Widget>[
368368
TextField(
369369
controller: maxWidthController,
370-
keyboardType: TextInputType.numberWithOptions(decimal: true),
370+
keyboardType:
371+
TextInputType.numberWithOptions(decimal: true),
371372
decoration:
372373
InputDecoration(hintText: "Enter maxWidth if desired"),
373374
),
374375
TextField(
375376
controller: maxHeightController,
376-
keyboardType: TextInputType.numberWithOptions(decimal: true),
377+
keyboardType:
378+
TextInputType.numberWithOptions(decimal: true),
377379
decoration:
378380
InputDecoration(hintText: "Enter maxHeight if desired"),
379381
),

packages/image_picker/image_picker/ios/Classes/FLTImagePickerPlugin.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,12 @@ - (void)pickImageWithUIImagePicker {
119119
[self checkCameraAuthorization];
120120
break;
121121
case SOURCE_GALLERY:
122-
if (usePhaAsset) {
123-
[self checkPhotoAuthorization];
124-
break;
125-
}
126-
[self showPhotoLibrary:UIImagePickerClassType];
122+
if (usePhaAsset) {
123+
[self checkPhotoAuthorization];
127124
break;
125+
}
126+
[self showPhotoLibrary:UIImagePickerClassType];
127+
break;
128128
default:
129129
self.result([FlutterError errorWithCode:@"invalid_source"
130130
message:@"Invalid image source."

0 commit comments

Comments
 (0)