mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-11-01 01:18:38 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			619 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			619 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
| import 'package:dashbook/dashbook.dart';
 | |
| import 'package:flame/flame.dart';
 | |
| import 'package:flame/widgets.dart';
 | |
| import 'package:flutter/widgets.dart';
 | |
| 
 | |
| Widget nineTileBoxBuilder(DashbookContext ctx) {
 | |
|   return Container(
 | |
|     width: ctx.numberProperty('width', 200),
 | |
|     height: ctx.numberProperty('height', 200),
 | |
|     child: NineTileBox(
 | |
|       image: Flame.images.fromCache('nine-box.png'),
 | |
|       tileSize: 8,
 | |
|       destTileSize: 50,
 | |
|       child: const Center(
 | |
|         child: Text(
 | |
|           'Cool label',
 | |
|           style: TextStyle(
 | |
|             color: Color(0xFFFFFFFF),
 | |
|           ),
 | |
|         ),
 | |
|       ),
 | |
|     ),
 | |
|   );
 | |
| }
 | 
