mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-10-31 17:06:50 +08:00 
			
		
		
		
	🏷 Backport some code improvements from the null-safety branch (#603)
				
					
				
			This commit is contained in:
		| @ -108,8 +108,9 @@ void main() async { | ||||
|           child: SpriteWidget( | ||||
|             sprite: shieldSprite, | ||||
|             anchor: parseAnchor( | ||||
|               ctx.listProperty('anchor', 'Anchor.center', anchorOptions), | ||||
|             ), | ||||
|                   ctx.listProperty('anchor', 'Anchor.center', anchorOptions), | ||||
|                 ) ?? | ||||
|                 Anchor.topLeft, | ||||
|           ), | ||||
|         ), | ||||
|       ); | ||||
| @ -134,8 +135,9 @@ void main() async { | ||||
|             animation: _animation, | ||||
|             playing: ctx.boolProperty('playing', true), | ||||
|             anchor: parseAnchor( | ||||
|               ctx.listProperty('anchor', 'Anchor.center', anchorOptions), | ||||
|             ), | ||||
|                   ctx.listProperty('anchor', 'Anchor.center', anchorOptions), | ||||
|                 ) ?? | ||||
|                 Anchor.topLeft, | ||||
|           ), | ||||
|         ), | ||||
|       ); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Serge Matveenko
					Serge Matveenko