mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-03-03 12:16: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 {
|
||||
if (showWideAngleZoomIOS &&
|
||||
widget.selectedCameraDetails.cameraId == 2) {
|
||||
widget.selectedCameraDetails.cameraId ==
|
||||
_wideCameraIndex) {
|
||||
await widget.selectCamera(0, true);
|
||||
} else {
|
||||
widget.updateScaleFactor(1.0);
|
||||
|
|
@ -175,6 +176,12 @@ class _CameraZoomButtonsState extends State<CameraZoomButtons> {
|
|||
final level =
|
||||
min(await widget.controller.getMaxZoomLevel(), 2)
|
||||
.toDouble();
|
||||
|
||||
if (showWideAngleZoomIOS &&
|
||||
widget.selectedCameraDetails.cameraId ==
|
||||
_wideCameraIndex) {
|
||||
await widget.selectCamera(0, true);
|
||||
}
|
||||
widget.updateScaleFactor(level);
|
||||
},
|
||||
child: Text(
|
||||
|
|
|
|||
Loading…
Reference in a new issue