新增阅读器功能,待优化

This commit is contained in:
DelLevin-Home
2026-06-20 00:54:40 +08:00
parent 0af9d4368a
commit 670502b4f5
250 changed files with 97847 additions and 826 deletions

View File

@@ -0,0 +1,6 @@
/// Dart ARGB 颜色字符串转换为 JS RGBA 格式
/// dartColor: "FF0066FF" (AARRGGBB) → jsColor: "0066FFFF" (RRGGBBAA)
String convertDartColorToJs(String dartColor) {
if (dartColor.length < 8) return dartColor;
return dartColor.substring(2) + dartColor.substring(0, 2);
}