feat: 整体常用控件封装,常用工具类。首页数据对接

This commit is contained in:
chengsiwen committed 2026-06-27 14:15:25 +08:00
1 parent d90d023e85
commit fbcd33ea2b
50 files changed
+4558 -264

No files matched your search

+6 -6
View File
@@ -1,10 +1,11 @@
import 'dart:ui';
class CommonColor {
// 主题色 #653CFA
static const Color primacyColor = Color(0xFF653CFA);
static const Color black = Color(0xFF030510);
// static const Color black = Color(0xFF030510);
// 040408
static const Color black = Color(0xFF040408);
// grey
static const Color grey = Color(0xFF8e8e93);
static const Color goldColor = Color(0xFFc5a059);
@@ -12,7 +13,6 @@ class CommonColor {
static const Color goldDark = Color(0xFF92400e);
static const Color secondaryColor = Color(0xFF9ca3af);
static const Color fireRed = Color(0xFFf01d1d);
static const Color woodGreen = Color(0xFF56a324);
static const Color earthBrown = Color(0xFFcb8a46);
@@ -28,9 +28,9 @@ class CommonColor {
static const Color diamondColor = Color(0xFFB9F2FF);
static Color withValue(String value) {
String _v = value.replaceAll('#', '');
String res = '0xff$_v';
String colorValue = value.replaceAll('#', '');
String res = '0xff$colorValue';
int valueInt = int.parse(res);
return Color(valueInt);
}
}
}