Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 1b1d123

Browse files
author
David Roume
committed
[camera]: reuse cameraId instead of the controller.cameraId to build the preview texture
1 parent bb14e6e commit 1b1d123

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packages/camera/camera_platform_interface/lib/src/method_channel/method_channel_camera.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,8 +505,7 @@ class MethodChannelCamera extends CameraPlatform {
505505

506506
@override
507507
Widget buildPreview(int cameraId) {
508-
//return Texture(textureId: cameraId);
509-
return Texture(textureId: controller.cameraId, filterQuality: FilterQuality.none);
508+
return Texture(textureId: cameraId, filterQuality: FilterQuality.none);
510509
}
511510

512511
/// Returns the flash mode as a String.

0 commit comments

Comments
 (0)