@@ -44,6 +44,8 @@ This project follows the [all-contributors](https://github.com/all-contributors/
4444 - [ Preparing for use 🍭] ( #preparing-for-use- )
4545 - [ Usage 📖] ( #usage- )
4646 - [ 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- )
4749
4850## Features ✨
4951
@@ -86,8 +88,9 @@ Flutter SDK: `>=2.0.0` .
8688| enablePinchToZoom | ` bool ` | Whether users can zoom the camera by pinch. | ` true ` |
8789| enablePullToZoomInRecord | ` bool ` | Whether users can zoom by pulling up when recording video. | ` true ` |
8890| shouldDeletePreviewFile | ` bool ` | Whether the preview file will be delete when pop. | ` false ` |
91+ | shouldLockPortrait | ` bool ` | Whether the orientation should be set to portrait | ` true ` |
8992| 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) ` |
9194| textDelegate | ` CameraPickerTextDelegate? ` | Text delegate that controls text in widgets. | ` DefaultCameraPickerTextDelegate ` |
9295| resolutionPreset | ` ResolutionPreset ` | Present resolution for the camera. | ` ResolutionPreset.max ` |
9396| cameraQuarterTurns | ` int ` | The number of clockwise quarter turns the camera view should be rotated. | ` 0 ` |
@@ -99,3 +102,12 @@ Flutter SDK: `>=2.0.0` .
99102``` dart
100103final AssetEntity? entity = await CameraPicker.pickFromCamera(context);
101104```
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