mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-03-03 14:06:47 +00:00
fix zoom issue on ios
This commit is contained in:
parent
47904275e1
commit
17c22c2f80
1 changed files with 8 additions and 1 deletions
|
|
@ -152,7 +152,8 @@ class _CameraZoomButtonsState extends State<CameraZoomButtons> {
|
||||||
),
|
),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
if (showWideAngleZoomIOS &&
|
if (showWideAngleZoomIOS &&
|
||||||
widget.selectedCameraDetails.cameraId == 2) {
|
widget.selectedCameraDetails.cameraId ==
|
||||||
|
_wideCameraIndex) {
|
||||||
await widget.selectCamera(0, true);
|
await widget.selectCamera(0, true);
|
||||||
} else {
|
} else {
|
||||||
widget.updateScaleFactor(1.0);
|
widget.updateScaleFactor(1.0);
|
||||||
|
|
@ -175,6 +176,12 @@ class _CameraZoomButtonsState extends State<CameraZoomButtons> {
|
||||||
final level =
|
final level =
|
||||||
min(await widget.controller.getMaxZoomLevel(), 2)
|
min(await widget.controller.getMaxZoomLevel(), 2)
|
||||||
.toDouble();
|
.toDouble();
|
||||||
|
|
||||||
|
if (showWideAngleZoomIOS &&
|
||||||
|
widget.selectedCameraDetails.cameraId ==
|
||||||
|
_wideCameraIndex) {
|
||||||
|
await widget.selectCamera(0, true);
|
||||||
|
}
|
||||||
widget.updateScaleFactor(level);
|
widget.updateScaleFactor(level);
|
||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue