mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-10-31 08:56:01 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			709 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			709 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
| import 'package:dashbook/dashbook.dart';
 | |
| import 'package:examples/commons/commons.dart';
 | |
| import 'package:examples/stories/utils/timer_component_example.dart';
 | |
| import 'package:examples/stories/utils/timer_example.dart';
 | |
| import 'package:flame/game.dart';
 | |
| 
 | |
| void addUtilsStories(Dashbook dashbook) {
 | |
|   dashbook.storiesOf('Utils')
 | |
|     ..add(
 | |
|       'Timer',
 | |
|       (_) => GameWidget(game: TimerExample()),
 | |
|       codeLink: baseLink('utils/timer_example.dart'),
 | |
|       info: TimerExample.description,
 | |
|     )
 | |
|     ..add(
 | |
|       'Timer Component',
 | |
|       (_) => GameWidget(game: TimerComponentExample()),
 | |
|       codeLink: baseLink('utils/timer_component_example.dart'),
 | |
|       info: TimerComponentExample.description,
 | |
|     );
 | |
| }
 | 
