fix parse opus

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-06-04 19:35:09 +08:00
parent 295a587df5
commit 038285cbe6
4 changed files with 38 additions and 25 deletions

View File

@@ -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);