You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			28 lines
		
	
	
		
			994 B
		
	
	
	
		
			Dart
		
	
			
		
		
	
	
			28 lines
		
	
	
		
			994 B
		
	
	
	
		
			Dart
		
	
import 'package:flutter/material.dart';
 | 
						|
 | 
						|
class MyRichText extends StatelessWidget {
 | 
						|
  final String title;
 | 
						|
  final String value;
 | 
						|
  final bool isArabic;
 | 
						|
  final Color? valueColor;
 | 
						|
 | 
						|
  // MyRichText(this.title, this.value, this.isArabic, {this.valueColor});
 | 
						|
  MyRichText(this.title, this.value, this.isArabic, {this.valueColor, Key? key}) : super(key: key);
 | 
						|
 | 
						|
  @override
 | 
						|
  Widget build(BuildContext context) {
 | 
						|
    return RichText(
 | 
						|
      maxLines: 2,
 | 
						|
      text: TextSpan(
 | 
						|
          text: title,
 | 
						|
          style: TextStyle(fontSize: 10, fontWeight: FontWeight.w600, fontFamily: isArabic ? 'Cairo' : 'Poppins', color: Color(0xff575757), letterSpacing: -0.4, height: 18 / 10),
 | 
						|
          children: <TextSpan>[
 | 
						|
            TextSpan(
 | 
						|
              text: " $value",
 | 
						|
              style: TextStyle(fontSize: 10, fontWeight: FontWeight.w600, fontFamily: isArabic ? 'Cairo' : 'Poppins', color: valueColor ?? Color(0xff2B353E), letterSpacing: -0.48, height: 18 / 12),
 | 
						|
            )
 | 
						|
          ]),
 | 
						|
    );
 | 
						|
  }
 | 
						|
}
 |