Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
🎨 Format
  • Loading branch information
AlexV525 committed May 15, 2022
commit 23a03f98d1d3e9609a92924f5ba88c00296bc8c1
20 changes: 10 additions & 10 deletions packages/camera/camera/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,8 @@ class _CameraExampleHomeState extends State<CameraExampleHome>
}
if (cameraController.value.hasError) {
showInSnackBar(
'Camera error ${cameraController.value.errorDescription}');
'Camera error ${cameraController.value.errorDescription}',
);
}
});

Expand All @@ -672,15 +673,14 @@ class _CameraExampleHomeState extends State<CameraExampleHome>
}
await Future.wait(<Future<Object?>>[
// The exposure mode is currently not supported on the web.
...!kIsWeb
? <Future<Object?>>[
cameraController.getMinExposureOffset().then(
(double value) => _minAvailableExposureOffset = value),
cameraController
.getMaxExposureOffset()
.then((double value) => _maxAvailableExposureOffset = value)
]
: <Future<Object?>>[],
if (kIsWeb) ...<Future<Object?>>[
cameraController
.getMinExposureOffset()
.then((double value) => _minAvailableExposureOffset = value),
cameraController
.getMaxExposureOffset()
.then((double value) => _maxAvailableExposureOffset = value)
],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this just re-formatting?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep.

cameraController
.getMaxZoomLevel()
.then((double value) => _maxAvailableZoom = value),
Expand Down