所有一级页面和不分二级页面
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
/// 全局颜色常量
|
||||
class AppColors {
|
||||
static const Color primary = Color(0xFF165DFF);
|
||||
static const Color danger = Color(0xFFF53F3F);
|
||||
static const Color warning = Color(0xFFFF7D00);
|
||||
static const Color textPrimary = Color(0xFF1D2129);
|
||||
static const Color textSecondary = Color(0xFF4E5969);
|
||||
static const Color textHint = Color(0xFF86909C);
|
||||
static const Color background = Color(0xFFFFFFFF);
|
||||
static const Color cardBackground = Color(0xFFF8F9FA);
|
||||
static const Color borderColor = Color(0xFFE5E6EB);
|
||||
}
|
||||
|
||||
/// 全局尺寸常量
|
||||
class AppDimensions {
|
||||
static const double borderRadius = 16.0;
|
||||
static const double borderRadiusSmall = 8.0;
|
||||
static const double borderRadiusMedium = 12.0;
|
||||
static const double horizontalPadding = 16.0;
|
||||
static const double moduleSpacing = 20.0;
|
||||
static const double cardShadowBlur = 4.0;
|
||||
static const double buttonHeight = 48.0;
|
||||
static const double appBarHeight = 44.0;
|
||||
}
|
||||
|
||||
/// 上报类型枚举
|
||||
enum ReportType {
|
||||
deviceFault('设备故障', Icons.notifications_active),
|
||||
patrolRecord('巡检记录', Icons.description),
|
||||
hiddenDanger('隐患上报', Icons.shield),
|
||||
defectReport('缺陷上报', Icons.build);
|
||||
|
||||
final String label;
|
||||
final IconData icon;
|
||||
|
||||
const ReportType(this.label, this.icon);
|
||||
}
|
||||
|
||||
/// 问题等级枚举
|
||||
enum ProblemLevel {
|
||||
normal('一般', Color(0xFF86909C), Color(0xFFE5E6EB)),
|
||||
important('重要', Color(0xFFFF7D00), Color(0xFFE5E6EB)),
|
||||
urgent('紧急', Color(0xFFF53F3F), Color(0xFFF53F3F));
|
||||
|
||||
final String label;
|
||||
final Color textColor;
|
||||
final Color borderColor;
|
||||
|
||||
const ProblemLevel(this.label, this.textColor, this.borderColor);
|
||||
}
|
||||
Reference in New Issue
Block a user