@@ -108,7 +108,7 @@ class _BarcodeScannerWithScanWindowState
108
108
alignment: Alignment .center,
109
109
padding: const EdgeInsets .symmetric (horizontal: 16 , vertical: 8 ),
110
110
height: 100 ,
111
- color: Colors .black. withOpacity ( 0.4 ),
111
+ color: const Color . fromRGBO ( 0 , 0 , 0 , 0.4 ),
112
112
child: ScannedBarcodeLabel (barcodes: controller.barcodes),
113
113
),
114
114
),
@@ -137,7 +137,7 @@ class ScannerOverlay extends CustomPainter {
137
137
final cutoutPath = Path ()..addRect (scanWindow);
138
138
139
139
final backgroundPaint = Paint ()
140
- ..color = Colors .black. withOpacity ( 0.5 )
140
+ ..color = const Color . fromRGBO ( 0 , 0 , 0 , 0.5 )
141
141
..style = PaintingStyle .fill
142
142
..blendMode = BlendMode .dstOver;
143
143
@@ -214,7 +214,7 @@ class BarcodeOverlay extends CustomPainter {
214
214
final cutoutPath = Path ()..addPolygon (adjustedOffset, true );
215
215
216
216
final backgroundPaint = Paint ()
217
- ..color = Colors .red. withOpacity ( 0.3 )
217
+ ..color = const Color ( 0x4DF44336 )
218
218
..style = PaintingStyle .fill
219
219
..blendMode = BlendMode .dstOut;
220
220
0 commit comments