mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-11-01 01:18:38 +08:00 
			
		
		
		
	Add some new lint rules (#1117)
This commit is contained in:
		| @ -94,16 +94,14 @@ class Compass extends PositionComponent { | ||||
|       final angle = Transform2D.tau * (i / 12); | ||||
|       // Note: rim takes up 0.1radius, so the lengths must be > than that | ||||
|       final markLength = (i % 3 == 0) ? _radius * 0.2 : _radius * 0.15; | ||||
|       _marksPath | ||||
|         ..moveTo( | ||||
|           _radius + _radius * sin(angle), | ||||
|           _radius + _radius * cos(angle), | ||||
|         ); | ||||
|       _marksPath | ||||
|         ..lineTo( | ||||
|           _radius + (_radius - markLength) * sin(angle), | ||||
|           _radius + (_radius - markLength) * cos(angle), | ||||
|         ); | ||||
|       _marksPath.moveTo( | ||||
|         _radius + _radius * sin(angle), | ||||
|         _radius + _radius * cos(angle), | ||||
|       ); | ||||
|       _marksPath.lineTo( | ||||
|         _radius + (_radius - markLength) * sin(angle), | ||||
|         _radius + (_radius - markLength) * cos(angle), | ||||
|       ); | ||||
|     } | ||||
|  | ||||
|     arrow = CompassArrow(width: _radius * 0.3, radius: _radius * 0.7) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Luan Nico
					Luan Nico