79218615

Date: 2024-11-23 19:07:19
Score: 2
Natty:
Report link

Issue https://github.com/flutter/flutter/issues/15953 it works:

AspectRatio(
  aspectRatio: 1,
  child: ClipRect(
    child: FittedBox(
      fit: BoxFit.cover,
      child: SizedBox(
        width: _controller!.value.previewSize.height,
        height: _controller!.value.previewSize.width,
        child: CameraPreview(_controller!),
      ),
    ),
  ),
)
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Bombicode