mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-10-31 08:56:01 +08:00 
			
		
		
		
	chore: Update usages of Dart UI Color to not use deprecated fields and methods [flame_3d] (#3297)
Update usages of Dart UI Color to not use deprecated fields and methods. On latest main of Flutter these will cause lint errors, [as can be seen here](https://github.com/flame-engine/flame/actions/runs/10814047130/job/29999530293?pr=3282). Note: I will update the `flame_3d`-specific violations on a followup.
This commit is contained in:
		| @ -23,8 +23,8 @@ bounce on will appear. | ||||
|   '''; | ||||
|  | ||||
|   final _colorTween = ColorTween( | ||||
|     begin: Colors.amber.withOpacity(1.0), | ||||
|     end: Colors.lightBlueAccent.withOpacity(1.0), | ||||
|     begin: Colors.amber.withValues(alpha: 1.0), | ||||
|     end: Colors.lightBlueAccent.withValues(alpha: 1.0), | ||||
|   ); | ||||
|   final random = Random(); | ||||
|   Ray2? ray; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Luan Nico
					Luan Nico