@@ -108,7 +108,7 @@ class _BarcodeScannerWithScanWindowState
108108 alignment: Alignment .center,
109109 padding: const EdgeInsets .symmetric (horizontal: 16 , vertical: 8 ),
110110 height: 100 ,
111- color: Colors .black. withOpacity ( 0.4 ),
111+ color: const Color . fromRGBO ( 0 , 0 , 0 , 0.4 ),
112112 child: ScannedBarcodeLabel (barcodes: controller.barcodes),
113113 ),
114114 ),
@@ -137,7 +137,7 @@ class ScannerOverlay extends CustomPainter {
137137 final cutoutPath = Path ()..addRect (scanWindow);
138138
139139 final backgroundPaint = Paint ()
140- ..color = Colors .black. withOpacity ( 0.5 )
140+ ..color = const Color . fromRGBO ( 0 , 0 , 0 , 0.5 )
141141 ..style = PaintingStyle .fill
142142 ..blendMode = BlendMode .dstOver;
143143
@@ -214,7 +214,7 @@ class BarcodeOverlay extends CustomPainter {
214214 final cutoutPath = Path ()..addPolygon (adjustedOffset, true );
215215
216216 final backgroundPaint = Paint ()
217- ..color = Colors .red. withOpacity ( 0.3 )
217+ ..color = const Color ( 0x4DF44336 )
218218 ..style = PaintingStyle .fill
219219 ..blendMode = BlendMode .dstOut;
220220
0 commit comments