mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-11-04 13:08:09 +08:00 
			
		
		
		
	TextPaint to use TextStyle instead of TextPaintConfig (#1086)
				
					
				
			* `TextPaint` to use `TextStyle` instead of `TextPaintConfig` * Update packages/flame/lib/src/text.dart Co-authored-by: Pasha Stetsenko <stpasha@google.com> * Removed BaseTextConfig and TextPaintConfig * Update text docs * Apply suggestions from code review Co-authored-by: Erick <erickzanardoo@gmail.com> * Remove generics * Update TextBoxExample * Update text examples variable names * Fix TextPaint in collision_detection example Co-authored-by: Pasha Stetsenko <stpasha@google.com> Co-authored-by: Erick <erickzanardoo@gmail.com>
This commit is contained in:
		@ -5,9 +5,7 @@ import 'package:flutter/material.dart';
 | 
			
		||||
 | 
			
		||||
class RenderedTimeComponent extends TimerComponent {
 | 
			
		||||
  final TextPaint textPaint = TextPaint(
 | 
			
		||||
    config: const TextPaintConfig(
 | 
			
		||||
      color: Color(0xFFFFFFFF),
 | 
			
		||||
    ),
 | 
			
		||||
    style: const TextStyle(color: Colors.white),
 | 
			
		||||
  );
 | 
			
		||||
 | 
			
		||||
  final double yOffset;
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user