mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-06 02:54:49 +08:00
@@ -1,8 +1,10 @@
|
||||
import 'package:flutter/rendering.dart' show Color;
|
||||
|
||||
abstract final class ColourUtils {
|
||||
static Color parseColor(String color) =>
|
||||
Color(0xFF000000 | int.parse(color.substring(1), radix: 16));
|
||||
static int parse2Int(String color) =>
|
||||
0xFF000000 | int.parse(color.substring(1), radix: 16);
|
||||
|
||||
static Color parseColor(String color) => Color(parse2Int(color));
|
||||
|
||||
static Color parseMedalColor(String color) {
|
||||
final rgba = int.parse(color.substring(1), radix: 16);
|
||||
|
||||
Reference in New Issue
Block a user