@@ -70,33 +70,29 @@ void main() {
7070 expectedSize, Size (image.height.toDouble (), image.width.toDouble ()));
7171 }
7272
73- testWidgets (
74- 'Capture specific image resolutions' ,
75- (WidgetTester tester) async {
76- final List <CameraDescription > cameras =
77- await CameraPlatform .instance.availableCameras ();
78- if (cameras.isEmpty) {
79- return ;
80- }
81- for (final CameraDescription cameraDescription in cameras) {
82- bool previousPresetExactlySupported = true ;
83- for (final MapEntry <ResolutionPreset , Size > preset
84- in presetExpectedSizes.entries) {
85- final CameraController controller =
86- CameraController (cameraDescription, preset.key);
87- await controller.initialize ();
88- final bool presetExactlySupported =
89- await testCaptureImageResolution (controller, preset.key);
90- assert (! (! previousPresetExactlySupported && presetExactlySupported),
91- 'The camera took higher resolution pictures at a lower resolution.' );
92- previousPresetExactlySupported = presetExactlySupported;
93- await controller.dispose ();
94- }
73+ testWidgets ('Capture specific image resolutions' ,
74+ (WidgetTester tester) async {
75+ final List <CameraDescription > cameras =
76+ await CameraPlatform .instance.availableCameras ();
77+ if (cameras.isEmpty) {
78+ return ;
79+ }
80+ for (final CameraDescription cameraDescription in cameras) {
81+ bool previousPresetExactlySupported = true ;
82+ for (final MapEntry <ResolutionPreset , Size > preset
83+ in presetExpectedSizes.entries) {
84+ final CameraController controller =
85+ CameraController (cameraDescription, preset.key);
86+ await controller.initialize ();
87+ final bool presetExactlySupported =
88+ await testCaptureImageResolution (controller, preset.key);
89+ assert (! (! previousPresetExactlySupported && presetExactlySupported),
90+ 'The camera took higher resolution pictures at a lower resolution.' );
91+ previousPresetExactlySupported = presetExactlySupported;
92+ await controller.dispose ();
9593 }
96- },
97- // TODO(egarciad): Fix https://github.com/flutter/flutter/issues/93686.
98- skip: true ,
99- );
94+ }
95+ });
10096
10197 // This tests that the capture is no bigger than the preset, since we have
10298 // automatic code to fall back to smaller sizes when we need to. Returns
0 commit comments