@@ -170,7 +170,7 @@ - (instancetype)initWithCameraName:(NSString *)cameraName
170170 error : (NSError **)error {
171171 self = [super init ];
172172 _zoom = 1 ;
173-
173+
174174 NSAssert (self, @" super init cannot be nil" );
175175 _dispatchQueue = dispatchQueue;
176176 _captureSession = [[AVCaptureSession alloc ] init ];
@@ -220,23 +220,23 @@ - (void)stop {
220220}
221221
222222- (void )zoomIn {
223- _zoom++;
224- [_captureDevice lockForConfiguration: NULL ];
225- [_captureDevice setVideoZoomFactor: _zoom];
226- [_captureDevice unlockForConfiguration ];
223+ _zoom++;
224+ [_captureDevice lockForConfiguration: NULL ];
225+ [_captureDevice setVideoZoomFactor: _zoom];
226+ [_captureDevice unlockForConfiguration ];
227227}
228228
229229- (void )zoomOut {
230- _zoom--;
231-
232- if (_zoom < 1 ) {
233- _zoom = 1 ;
234- return ;
235- }
236-
237- [_captureDevice lockForConfiguration: NULL ];
238- [_captureDevice setVideoZoomFactor: _zoom];
239- [_captureDevice unlockForConfiguration ];
230+ _zoom--;
231+
232+ if (_zoom < 1 ) {
233+ _zoom = 1 ;
234+ return ;
235+ }
236+
237+ [_captureDevice lockForConfiguration: NULL ];
238+ [_captureDevice setVideoZoomFactor: _zoom];
239+ [_captureDevice unlockForConfiguration ];
240240}
241241
242242- (void )captureToFile : (NSString *)path result : (FlutterResult)result {
@@ -739,11 +739,11 @@ - (void)handleMethodCallAsync:(FlutterMethodCall *)call result:(FlutterResult)re
739739 [_camera stopImageStream ];
740740 result (nil );
741741 } else if ([@" zoomIn" isEqualToString: call.method]) {
742- [_camera zoomIn ];
743- result (nil );
742+ [_camera zoomIn ];
743+ result (nil );
744744 } else if ([@" zoomOut" isEqualToString: call.method]) {
745- [_camera zoomOut ];
746- result (nil );
745+ [_camera zoomOut ];
746+ result (nil );
747747 } else {
748748 NSDictionary *argsMap = call.arguments ;
749749 NSUInteger textureId = ((NSNumber *)argsMap[@" textureId" ]).unsignedIntegerValue ;
0 commit comments