42 lines
918 B
Dart
42 lines
918 B
Dart
|
|
/// 我的页面全局常量
|
||
|
|
/// 包含颜色、尺寸等全局配置
|
||
|
|
library;
|
||
|
|
|
||
|
|
import 'package:flutter/material.dart';
|
||
|
|
|
||
|
|
/// 颜色常量
|
||
|
|
class MyColors {
|
||
|
|
/// 主色调
|
||
|
|
static const Color primary = Color(0xFF165DFF);
|
||
|
|
|
||
|
|
/// 背景色
|
||
|
|
static const Color background = Color(0xFFF5F7FA);
|
||
|
|
|
||
|
|
/// 卡片背景色
|
||
|
|
static const Color cardBackground = Color(0xFFFFFFFF);
|
||
|
|
|
||
|
|
/// 主要文字色
|
||
|
|
static const Color textPrimary = Color(0xFF1D2129);
|
||
|
|
|
||
|
|
/// 次要文字色
|
||
|
|
static const Color textSecondary = Color(0xFF4E5969);
|
||
|
|
|
||
|
|
/// 辅助文字色
|
||
|
|
static const Color textTertiary = Color(0xFF86909C);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// 尺寸常量
|
||
|
|
class MyDimensions {
|
||
|
|
/// 通用圆角
|
||
|
|
static const double borderRadius = 12.0;
|
||
|
|
|
||
|
|
/// 水平边距
|
||
|
|
static const double horizontalPadding = 16.0;
|
||
|
|
|
||
|
|
/// 模块间距
|
||
|
|
static const double moduleSpacing = 16.0;
|
||
|
|
|
||
|
|
/// 卡片阴影模糊半径
|
||
|
|
static const double cardShadowBlur = 8.0;
|
||
|
|
}
|