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

@ -432,7 +432,8 @@ class ParticlesExample extends FlameGame {
renderer: (canvas, particle) {
final paint = randomElement(paints);
// Override the color to dynamically update opacity
paint.color = paint.color.withOpacity(1 - particle.progress);
paint.color =
paint.color.withValues(alpha: 1 - particle.progress);
canvas.drawCircle(
Offset.zero,