mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 14:48:41 +00:00
fix #107
This commit is contained in:
parent
05368a7ea9
commit
3e71edba32
1 changed files with 19 additions and 18 deletions
|
|
@ -162,7 +162,7 @@ class _CameraPreviewViewState extends State<CameraPreviewView> {
|
||||||
sharePreviewIsShown = true;
|
sharePreviewIsShown = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (useHighQuality) {
|
if (useHighQuality && !isFront) {
|
||||||
if (Platform.isIOS) {
|
if (Platform.isIOS) {
|
||||||
await controller.pausePreview();
|
await controller.pausePreview();
|
||||||
if (!context.mounted) return;
|
if (!context.mounted) return;
|
||||||
|
|
@ -221,7 +221,7 @@ class _CameraPreviewViewState extends State<CameraPreviewView> {
|
||||||
if (Platform.isIOS) {
|
if (Platform.isIOS) {
|
||||||
await controller.resumePreview();
|
await controller.resumePreview();
|
||||||
} else {
|
} else {
|
||||||
selectCamera(0);
|
selectCamera(cameraId);
|
||||||
}
|
}
|
||||||
if (context.mounted) {
|
if (context.mounted) {
|
||||||
setState(() {
|
setState(() {
|
||||||
|
|
@ -324,6 +324,7 @@ class _CameraPreviewViewState extends State<CameraPreviewView> {
|
||||||
setState(() {});
|
setState(() {});
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
if (!isFront)
|
||||||
ActionButton(
|
ActionButton(
|
||||||
Icons.hd_rounded,
|
Icons.hd_rounded,
|
||||||
tooltipText: context.lang.toggleHighQuality,
|
tooltipText: context.lang.toggleHighQuality,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue