mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-11-04 13:08:09 +08:00 
			
		
		
		
	Adding method docs
This commit is contained in:
		@ -106,6 +106,9 @@ class Animation {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  /// Automatically creates an Animation Object using animation data provided by the json file
 | 
					  /// Automatically creates an Animation Object using animation data provided by the json file
 | 
				
			||||||
  /// provided by Aseprite
 | 
					  /// provided by Aseprite
 | 
				
			||||||
 | 
					  ///
 | 
				
			||||||
 | 
					  /// [imagePath]: Source of the spritesheet animation
 | 
				
			||||||
 | 
					  /// [dataPath]: Animation's exported data in json format
 | 
				
			||||||
  static Future<Animation> fromAsepriteData(String imagePath, String dataPath) async {
 | 
					  static Future<Animation> fromAsepriteData(String imagePath, String dataPath) async {
 | 
				
			||||||
    String content = await rootBundle.loadString(dataPath);
 | 
					    String content = await rootBundle.loadString(dataPath);
 | 
				
			||||||
    Map<String, dynamic> json = jsonDecode(content);
 | 
					    Map<String, dynamic> json = jsonDecode(content);
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user