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

[camera] Stable release for null safety. #3641

Merged
merged 8 commits into from
Mar 2, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
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
15 changes: 3 additions & 12 deletions packages/camera/camera/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
## 0.8.0-nullsafety.3

* Updates the example code listed in the [README.md](README.md), so it runs without errors when you simply copy/ paste it into a Flutter App.

## 0.8.0-nullsafety.2
## 0.8.0

* Stable null safety release.
* Solved delay when using the zoom feature on iOS.

## 0.8.0-nullsafety.1

* Added a timeout to the pre-capture sequence on Android to prevent crashes when the camera cannot get a focus.

## 0.8.0-nullsafety

* Migrated to null safety.
* Updates the example code listed in the [README.md](README.md), so it runs without errors when you simply copy/ paste it into a Flutter App.

## 0.7.0+4

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import 'package:video_player/video_player.dart';
import 'package:integration_test/integration_test.dart';

void main() {
Directory testDir;
late Directory testDir;

IntegrationTestWidgetsFlutterBinding.ensureInitialized();

Expand Down Expand Up @@ -50,7 +50,7 @@ void main() {
// whether the image is exactly the desired resolution.
Future<bool> testCaptureImageResolution(
CameraController controller, ResolutionPreset preset) async {
final Size expectedSize = presetExpectedSizes[preset];
final Size expectedSize = presetExpectedSizes[preset]!;
print(
'Capturing photo at $preset (${expectedSize.width}x${expectedSize.height}) using camera ${controller.description.name}');

Expand Down Expand Up @@ -95,7 +95,7 @@ void main() {
// whether the image is exactly the desired resolution.
Future<bool> testCaptureVideoResolution(
CameraController controller, ResolutionPreset preset) async {
final Size expectedSize = presetExpectedSizes[preset];
final Size expectedSize = presetExpectedSizes[preset]!;
print(
'Capturing video at $preset (${expectedSize.width}x${expectedSize.height}) using camera ${controller.description.name}');

Expand Down
Loading