mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-10-31 00:48:47 +08:00 
			
		
		
		
	 8f7c773f82
			
		
	
	8f7c773f82
	
	
	
		
			
			* Non-fullscreen ParallaxComponent * Updated examples with no size needed * Formatting * Add docs for fullscreen parallax * Fix formatting * Remove need of nullable size * Add basic parallax sizing test * Fix formatting * Remove unused imports * Info text for the parallax examples
		
			
				
	
	
		
			19 lines
		
	
	
		
			381 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			381 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
| import 'dart:io';
 | |
| 
 | |
| void main(args) {
 | |
|   final coverageSummary = args[0] as String;
 | |
|   final currentRaw = coverageSummary.replaceFirstMapped(
 | |
|     RegExp(r".* (\d+\.\d+)%.*"),
 | |
|     (matches) => '${matches[1]}',
 | |
|   );
 | |
| 
 | |
|   final current = double.parse(currentRaw);
 | |
|   final min = double.parse(args[1].replaceAll('\n', ''));
 | |
| 
 | |
|   if (current < min) {
 | |
|     exit(1);
 | |
|   } else {
 | |
|     exit(0);
 | |
|   }
 | |
| }
 |