Replace deprecated withOpacity

https://stackoverflow.com/a/79285052/1435658
This commit is contained in:
Ian VanSchooten 2025-01-15 09:00:26 -05:00
parent 05cdaaf572
commit 36c212b2a0

View file

@ -93,7 +93,7 @@ class ScannerOverlay extends CustomPainter {
);
final backgroundPaint = Paint()
..color = Colors.black.withOpacity(0.5)
..color = Colors.black.withValues(alpha: 0.5)
..style = PaintingStyle.fill
..blendMode = BlendMode.srcOver;