Skip to content

Commit 5c1a8bd

Browse files
committed
♻️ Migrate to camera 0.7.x
1 parent 56e1b62 commit 5c1a8bd

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

lib/src/widget/camera_picker.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -989,10 +989,10 @@ class CameraPickerState extends State<CameraPicker>
989989
switch (_effectiveScaleType) {
990990
case _PreviewScaleType.width:
991991
_width = Screens.width;
992-
_height = Screens.width / controller.value.aspectRatio;
992+
_height = Screens.width * controller.value.aspectRatio;
993993
break;
994994
case _PreviewScaleType.height:
995-
_width = Screens.height * controller.value.aspectRatio;
995+
_width = Screens.height / controller.value.aspectRatio;
996996
_height = Screens.height;
997997
break;
998998
default:

pubspec.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,8 @@ dependencies:
1111
flutter:
1212
sdk: flutter
1313

14-
camera:
15-
git:
16-
url: https://github.com/flutter/plugins.git
17-
path: packages/camera/camera
18-
ref: cfa709835ab85702ee8a9ed24bbe7a3fe736c3f5
19-
14+
camera: ^0.7.0
2015
device_info: ^1.0.0
21-
path_provider: ^1.6.24
22-
photo_manager: ^0.5.8
16+
path_provider: ^1.6.27
17+
photo_manager: ^0.6.0
2318
video_player: ^1.0.1

0 commit comments

Comments
 (0)