1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 00:05:16 +00:00

Can change conversation color

This commit is contained in:
2021-03-13 10:09:17 +01:00
parent d8b2dd2599
commit f54cc22fc6
5 changed files with 117 additions and 1 deletions

View 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');
}