@@ -44,6 +44,8 @@ This project follows the [all-contributors](https://github.com/all-contributors/
44
44
- [ Preparing for use 🍭] ( #preparing-for-use- )
45
45
- [ Usage 📖] ( #usage- )
46
46
- [ Simple usage] ( #simple-usage )
47
+ - [ Frequent asked question 💭] ( #frequent-asked-question- )
48
+ - [ Why there are over-scaled issue when ` shouldLockPortrait ` set to false ?] ( #why-there-are-over-scales-issue-when-shouldLockPortrait-set-to-false- )
47
49
48
50
## Features ✨
49
51
@@ -86,8 +88,9 @@ Flutter SDK: `>=2.0.0` .
86
88
| enablePinchToZoom | ` bool ` | Whether users can zoom the camera by pinch. | ` true ` |
87
89
| enablePullToZoomInRecord | ` bool ` | Whether users can zoom by pulling up when recording video. | ` true ` |
88
90
| shouldDeletePreviewFile | ` bool ` | Whether the preview file will be delete when pop. | ` false ` |
91
+ | shouldLockPortrait | ` bool ` | Whether the orientation should be set to portrait | ` true ` |
89
92
| maximumRecordingDuration | ` Duration ` | The maximum duration of the video recording process. | ` const Duration(seconds: 15) ` |
90
- | theme | ` ThemeData ` | Theme data for the picker. | ` CameraPicker.themeData(C.themeColor) ` |
93
+ | theme | ` ThemeData? ` | Theme data for the picker. | ` CameraPicker.themeData(C.themeColor) ` |
91
94
| textDelegate | ` CameraPickerTextDelegate? ` | Text delegate that controls text in widgets. | ` DefaultCameraPickerTextDelegate ` |
92
95
| resolutionPreset | ` ResolutionPreset ` | Present resolution for the camera. | ` ResolutionPreset.max ` |
93
96
| cameraQuarterTurns | ` int ` | The number of clockwise quarter turns the camera view should be rotated. | ` 0 ` |
@@ -99,3 +102,12 @@ Flutter SDK: `>=2.0.0` .
99
102
``` dart
100
103
final AssetEntity? entity = await CameraPicker.pickFromCamera(context);
101
104
```
105
+
106
+ ## Frequent asked question 💭
107
+
108
+ ### Why there are over-scaled issue when ` shouldLockPortrait ` set to false?
109
+
110
+ Currently the rotate synchronization is not supported.
111
+ The ` DeviceOrientation ` from the ` CameraValue ` is different from the one
112
+ comes from flutter when the user is rotating devices.
113
+ The preview widget is synchronized when both orientation is the same.
0 commit comments