mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 12:28:03 +08:00
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:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user