Navaron Bracke

fix analysis on master

... ... @@ -99,7 +99,7 @@ class _BarcodeScannerWithControllerState
child: Container(
alignment: Alignment.bottomCenter,
height: 100,
color: Colors.black.withOpacity(0.4),
color: const Color.fromRGBO(0, 0, 0, 0.4),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
... ...
... ... @@ -68,7 +68,7 @@ class _BarcodeScannerListViewState extends State<BarcodeScannerListView> {
child: Container(
alignment: Alignment.bottomCenter,
height: 100,
color: Colors.black.withOpacity(0.4),
color: const Color.fromRGBO(0, 0, 0, 0.4),
child: Column(
children: [
Expanded(
... ...
... ... @@ -78,7 +78,7 @@ class _BarcodeScannerPage extends StatelessWidget {
child: Container(
alignment: Alignment.bottomCenter,
height: 100,
color: Colors.black.withOpacity(0.4),
color: const Color.fromRGBO(0, 0, 0, 0.4),
child: Center(
child: ScannedBarcodeLabel(barcodes: controller.barcodes),
),
... ...
... ... @@ -97,7 +97,7 @@ class _BarcodeScannerReturningImageState
child: Container(
alignment: Alignment.bottomCenter,
height: 100,
color: Colors.black.withOpacity(0.4),
color: const Color.fromRGBO(0, 0, 0, 0.4),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
... ...
... ... @@ -50,7 +50,7 @@ class _BarcodeScannerSimpleState extends State<BarcodeScannerSimple> {
child: Container(
alignment: Alignment.bottomCenter,
height: 100,
color: Colors.black.withOpacity(0.4),
color: const Color.fromRGBO(0, 0, 0, 0.4),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
... ...
... ... @@ -108,7 +108,7 @@ class _BarcodeScannerWithScanWindowState
alignment: Alignment.center,
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
height: 100,
color: Colors.black.withOpacity(0.4),
color: const Color.fromRGBO(0, 0, 0, 0.4),
child: ScannedBarcodeLabel(barcodes: controller.barcodes),
),
),
... ... @@ -137,7 +137,7 @@ class ScannerOverlay extends CustomPainter {
final cutoutPath = Path()..addRect(scanWindow);
final backgroundPaint = Paint()
..color = Colors.black.withOpacity(0.5)
..color = const Color.fromRGBO(0, 0, 0, 0.5)
..style = PaintingStyle.fill
..blendMode = BlendMode.dstOver;
... ... @@ -214,7 +214,7 @@ class BarcodeOverlay extends CustomPainter {
final cutoutPath = Path()..addPolygon(adjustedOffset, true);
final backgroundPaint = Paint()
..color = Colors.red.withOpacity(0.3)
..color = const Color(0x4DF44336)
..style = PaintingStyle.fill
..blendMode = BlendMode.dstOut;
... ...
... ... @@ -86,7 +86,7 @@ class _BarcodeScannerWithZoomState extends State<BarcodeScannerWithZoom> {
child: Container(
alignment: Alignment.bottomCenter,
height: 100,
color: Colors.black.withOpacity(0.4),
color: const Color.fromRGBO(0, 0, 0, 0.4),
child: Column(
children: [
if (!kIsWeb) _buildZoomScaleSlider(),
... ...
... ... @@ -118,7 +118,7 @@ class ScannerOverlay extends CustomPainter {
);
final backgroundPaint = Paint()
..color = Colors.black.withOpacity(0.5)
..color = const Color.fromRGBO(0, 0, 0, 0.5)
..style = PaintingStyle.fill
..blendMode = BlendMode.dstOver;
... ...
... ... @@ -19,7 +19,6 @@ class ScannerErrorWidget extends StatelessWidget {
errorMessage = 'Scanning is unsupported on this device';
default:
errorMessage = 'Generic Error';
break;
}
return ColoredBox(
... ...