refactor: Fix lint issues from latest flutter release (#3390)

Updates to use the new color method `withValues`.

---------

Co-authored-by: Lukas Klingsbo <lukas.klingsbo@gmail.com>
Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
This commit is contained in:
Mike Diarmid
2024-12-13 21:40:54 +00:00
committed by GitHub
parent d4094b2a1b
commit 978ad31b42
104 changed files with 284 additions and 150 deletions

View File

@ -17,7 +17,7 @@ around trying not to hit them.
Ray2? ray;
Ray2? reflection;
Vector2 origin = Vector2(250, 100);
Paint paint = Paint()..color = Colors.amber.withOpacity(0.6);
Paint paint = Paint()..color = Colors.amber.withValues(alpha: 0.6);
final speed = 100;
final inertia = 3.0;
final safetyDistance = 50;