File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -989,10 +989,10 @@ class CameraPickerState extends State<CameraPicker>
989
989
switch (_effectiveScaleType) {
990
990
case _PreviewScaleType .width:
991
991
_width = Screens .width;
992
- _height = Screens .width / controller.value.aspectRatio;
992
+ _height = Screens .width * controller.value.aspectRatio;
993
993
break ;
994
994
case _PreviewScaleType .height:
995
- _width = Screens .height * controller.value.aspectRatio;
995
+ _width = Screens .height / controller.value.aspectRatio;
996
996
_height = Screens .height;
997
997
break ;
998
998
default :
Original file line number Diff line number Diff line change @@ -11,13 +11,8 @@ dependencies:
11
11
flutter :
12
12
sdk : flutter
13
13
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
20
15
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
23
18
video_player : ^1.0.1
You can’t perform that action at this time.
0 commit comments