mirror of
https://gitlab.com/TheOneWithTheBraid/dart_pkpass.git
synced 2025-07-06 13:28:48 +00:00
chore: support complete CSS color codes
Signed-off-by: The one with the braid <the-one@with-the-braid.cf>
This commit is contained in:
parent
92319c20d2
commit
a41784b77e
2 changed files with 362 additions and 25 deletions
|
@ -6,7 +6,7 @@ abstract class MaybeDecode {
|
|||
|
||||
static int? maybeColor(String? colorCode) {
|
||||
if (colorCode == null) return null;
|
||||
return parseRgbToInt(colorCode);
|
||||
return fromCssColor(colorCode);
|
||||
}
|
||||
|
||||
static DateTime? maybeDateTime(String? timeStamp) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue