Skip to content

Commit 653e92d

Browse files
committed
fix analysis on master
1 parent f7d218d commit 653e92d

9 files changed

+10
-11
lines changed

example/lib/barcode_scanner_controller.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class _BarcodeScannerWithControllerState
9999
child: Container(
100100
alignment: Alignment.bottomCenter,
101101
height: 100,
102-
color: Colors.black.withOpacity(0.4),
102+
color: const Color.fromRGBO(0, 0, 0, 0.4),
103103
child: Row(
104104
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
105105
children: [

example/lib/barcode_scanner_listview.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class _BarcodeScannerListViewState extends State<BarcodeScannerListView> {
6868
child: Container(
6969
alignment: Alignment.bottomCenter,
7070
height: 100,
71-
color: Colors.black.withOpacity(0.4),
71+
color: const Color.fromRGBO(0, 0, 0, 0.4),
7272
child: Column(
7373
children: [
7474
Expanded(

example/lib/barcode_scanner_pageview.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class _BarcodeScannerPage extends StatelessWidget {
7878
child: Container(
7979
alignment: Alignment.bottomCenter,
8080
height: 100,
81-
color: Colors.black.withOpacity(0.4),
81+
color: const Color.fromRGBO(0, 0, 0, 0.4),
8282
child: Center(
8383
child: ScannedBarcodeLabel(barcodes: controller.barcodes),
8484
),

example/lib/barcode_scanner_returning_image.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class _BarcodeScannerReturningImageState
9797
child: Container(
9898
alignment: Alignment.bottomCenter,
9999
height: 100,
100-
color: Colors.black.withOpacity(0.4),
100+
color: const Color.fromRGBO(0, 0, 0, 0.4),
101101
child: Row(
102102
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
103103
children: [

example/lib/barcode_scanner_simple.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class _BarcodeScannerSimpleState extends State<BarcodeScannerSimple> {
5050
child: Container(
5151
alignment: Alignment.bottomCenter,
5252
height: 100,
53-
color: Colors.black.withOpacity(0.4),
53+
color: const Color.fromRGBO(0, 0, 0, 0.4),
5454
child: Row(
5555
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
5656
children: [

example/lib/barcode_scanner_window.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

example/lib/barcode_scanner_zoom.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class _BarcodeScannerWithZoomState extends State<BarcodeScannerWithZoom> {
8686
child: Container(
8787
alignment: Alignment.bottomCenter,
8888
height: 100,
89-
color: Colors.black.withOpacity(0.4),
89+
color: const Color.fromRGBO(0, 0, 0, 0.4),
9090
child: Column(
9191
children: [
9292
if (!kIsWeb) _buildZoomScaleSlider(),

example/lib/mobile_scanner_overlay.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class ScannerOverlay extends CustomPainter {
118118
);
119119

120120
final backgroundPaint = Paint()
121-
..color = Colors.black.withOpacity(0.5)
121+
..color = const Color.fromRGBO(0, 0, 0, 0.5)
122122
..style = PaintingStyle.fill
123123
..blendMode = BlendMode.dstOver;
124124

example/lib/scanner_error_widget.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ class ScannerErrorWidget extends StatelessWidget {
1919
errorMessage = 'Scanning is unsupported on this device';
2020
default:
2121
errorMessage = 'Generic Error';
22-
break;
2322
}
2423

2524
return ColoredBox(

0 commit comments

Comments
 (0)