I have this errors on my debug console, and not show nothing the camera preview in web mobile, but on my Mac browser works fine
Height of Platform View type: [plugins.flutter.io/camera_2] may not be set. Defaulting to `height: 100%`.
Set `style.height` to any appropriate value to stop this message.
Width of Platform View type: [plugins.flutter.io/camera_2] may not be set. Defaulting to `width: 100%`.
Set 开发者_运维技巧`style.width` to any appropriate value to stop this message.
Any solutions? =(
I tried to add height and width on widget father
SizedBox(
width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.height,
child: CameraPreview(_cameraController!),),
精彩评论