Created
March 24, 2019 21:38
-
-
Save redbluenat/db9bb37d1e643647afc231253be5a555 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Widget cameraPreviewWidget() { | |
if (!isReady || !controller.value.isInitialized) { | |
return Container(); | |
} | |
return AspectRatio( | |
aspectRatio: controller.value.aspectRatio, | |
child: CameraPreview(controller)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment