Navaron Bracke

fix wrong size in scan window example

@@ -39,16 +39,16 @@ class _BarcodeScannerWithScanWindowState @@ -39,16 +39,16 @@ class _BarcodeScannerWithScanWindowState
39 final scannedBarcode = barcodeCapture.barcodes.first; 39 final scannedBarcode = barcodeCapture.barcodes.first;
40 40
41 // No barcode corners, or size, or no camera preview size. 41 // No barcode corners, or size, or no camera preview size.
42 - if (scannedBarcode.corners.isEmpty ||  
43 - value.size.isEmpty ||  
44 - barcodeCapture.size.isEmpty) { 42 + if (value.size.isEmpty ||
  43 + scannedBarcode.size.isEmpty ||
  44 + scannedBarcode.corners.isEmpty) {
45 return const SizedBox(); 45 return const SizedBox();
46 } 46 }
47 47
48 return CustomPaint( 48 return CustomPaint(
49 painter: BarcodeOverlay( 49 painter: BarcodeOverlay(
50 barcodeCorners: scannedBarcode.corners, 50 barcodeCorners: scannedBarcode.corners,
51 - barcodeSize: barcodeCapture.size, 51 + barcodeSize: scannedBarcode.size,
52 boxFit: BoxFit.contain, 52 boxFit: BoxFit.contain,
53 cameraPreviewSize: value.size, 53 cameraPreviewSize: value.size,
54 ), 54 ),