mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Can change conversation color
This commit is contained in:
		
							
								
								
									
										13
									
								
								lib/utils/color_utils.dart
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								lib/utils/color_utils.dart
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
import 'dart:ui';
 | 
			
		||||
 | 
			
		||||
/// Color utilities
 | 
			
		||||
///
 | 
			
		||||
/// @author Pierre Hubert
 | 
			
		||||
 | 
			
		||||
String colorToHex(Color color) {
 | 
			
		||||
  if (color == null) return "";
 | 
			
		||||
 | 
			
		||||
  return color.red.toRadixString(16).padLeft(2, '0') +
 | 
			
		||||
      color.green.toRadixString(16).padLeft(2, '0') +
 | 
			
		||||
      color.blue.toRadixString(16).padLeft(2, '0');
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user