mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-11-01 01:18:38 +08:00 
			
		
		
		
	feat: adding default constructor on SvgComponent (#1334)
* feat: adding default constructor on SvgComponent * fixing flame version * svg not final anymore * pr suggestions
This commit is contained in:
		| @ -19,8 +19,8 @@ class MyGame extends FlameGame { | ||||
|   Future<void> onLoad() async { | ||||
|     await super.onLoad(); | ||||
|     svgInstance = await loadSvg('android.svg'); | ||||
|     final android = SvgComponent.fromSvg( | ||||
|       svgInstance, | ||||
|     final android = SvgComponent( | ||||
|       svg: svgInstance, | ||||
|       position: Vector2.all(100), | ||||
|       size: Vector2.all(100), | ||||
|     ); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Erick
					Erick