mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 10:38:41 +00:00
fix #61
This commit is contained in:
parent
e9c56425ee
commit
b80cdc0d03
1 changed files with 6 additions and 1 deletions
|
|
@ -226,7 +226,12 @@ class _CameraPreviewViewState extends State<CameraPreviewView> {
|
|||
child: SizedBox(
|
||||
width: controller.value.previewSize!.height,
|
||||
height: controller.value.previewSize!.width,
|
||||
child: CameraPreview(controller),
|
||||
child: Transform(
|
||||
alignment: Alignment.center,
|
||||
transform:
|
||||
Matrix4.rotationY(isFront ? 3.14 : 0),
|
||||
child: CameraPreview(controller),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue