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