File tree Expand file tree Collapse file tree 4 files changed +18
-4
lines changed Expand file tree Collapse file tree 4 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ that can be found in the LICENSE file. -->
4
4
5
5
# Changelog
6
6
7
+ ## 3.6.5
8
+
9
+ ### Fixes
10
+
11
+ - Correct sizes when using ` cameraQuarterTurns ` . (#149 )
12
+
7
13
## 3.6.4
8
14
9
15
### Improvements
Original file line number Diff line number Diff line change 1
1
name : wechat_camera_picker_demo
2
2
description : A new Flutter project.
3
- version : 3.6.4+20
3
+ version : 3.6.5+21
4
4
publish_to : none
5
5
6
6
environment :
Original file line number Diff line number Diff line change @@ -1180,7 +1180,7 @@ class CameraPickerState extends State<CameraPicker>
1180
1180
// Only call exposure point updates when the controller is initialized.
1181
1181
if (innerController? .value.isInitialized ?? false ) {
1182
1182
Feedback .forTap (context);
1183
- setExposureAndFocusPoint (d.globalPosition , constraints);
1183
+ setExposureAndFocusPoint (d.localPosition , constraints);
1184
1184
}
1185
1185
}
1186
1186
@@ -1340,6 +1340,7 @@ class CameraPickerState extends State<CameraPicker>
1340
1340
1341
1341
@override
1342
1342
Widget build (BuildContext context) {
1343
+ final MediaQueryData mq = MediaQuery .of (context);
1343
1344
return AnnotatedRegion <SystemUiOverlayStyle >(
1344
1345
value: SystemUiOverlayStyle .light,
1345
1346
child: Theme (
@@ -1348,7 +1349,14 @@ class CameraPickerState extends State<CameraPicker>
1348
1349
color: Colors .black,
1349
1350
child: RotatedBox (
1350
1351
quarterTurns: pickerConfig.cameraQuarterTurns,
1351
- child: buildBody (context),
1352
+ child: MediaQuery (
1353
+ data: mq.copyWith (
1354
+ size: pickerConfig.cameraQuarterTurns.isOdd
1355
+ ? mq.size.flipped
1356
+ : mq.size,
1357
+ ),
1358
+ child: Builder (builder: buildBody),
1359
+ ),
1352
1360
),
1353
1361
),
1354
1362
),
Original file line number Diff line number Diff line change 1
1
name : wechat_camera_picker
2
2
description : A camera picker based on WeChat's UI which is a separate runnable extension to wechat_assets_picker.
3
3
repository : https://github.com/fluttercandies/flutter_wechat_camera_picker
4
- version : 3.6.4
4
+ version : 3.6.5
5
5
6
6
environment :
7
7
sdk : " >=2.14.0 <3.0.0"
You can’t perform that action at this time.
0 commit comments