|
|
@ -87,6 +87,9 @@ class CameraAurora extends CameraPlatform { |
|
|
|
BuildContext context, |
|
|
|
BuildContext context, |
|
|
|
BoxConstraints constraints, |
|
|
|
BoxConstraints constraints, |
|
|
|
) { |
|
|
|
) { |
|
|
|
|
|
|
|
if (constraints.maxWidth.isNaN || constraints.maxHeight.isNaN) { |
|
|
|
|
|
|
|
return const SizedBox.shrink(); |
|
|
|
|
|
|
|
} |
|
|
|
CameraAuroraPlatform.instance |
|
|
|
CameraAuroraPlatform.instance |
|
|
|
.resizeFrame(constraints.maxWidth, constraints.maxHeight); |
|
|
|
.resizeFrame(constraints.maxWidth, constraints.maxHeight); |
|
|
|
return CameraViewfinder( |
|
|
|
return CameraViewfinder( |
|
|
|