cameraPreview function

dynamic cameraPreview(
  1. String url
)

The live picture at url, 320 px wide; tests swap the network out.

Implementation

Widget cameraPreview(String url) => Image.network(
  url,
  width: 320,
  gaplessPlayback: true,
  errorBuilder: (_, _, _) => const SizedBox.shrink(),
);