#
whycq
2025-03-03 6a90c5bde0facc8330ce4c7c7d89292717b7ac65
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import 'package:flutter/material.dart';
 
class LightTheme {
  static const Color mainBackColor = Color.fromRGBO(233, 233, 233, 1);
  static const Color mainTextColor = Color.fromRGBO(0, 0, 0, .8);
  static ThemeData customLightTheme = ThemeData.light().copyWith(
    primaryColor: mainBackColor,
    hintColor: mainBackColor,
    scaffoldBackgroundColor: mainBackColor, // 设置主背景颜色为浅绿色
    appBarTheme: AppBarTheme(
      titleTextStyle: TextStyle(fontSize: 18,color: mainTextColor),
    ),
    textTheme: TextTheme(
      titleLarge: TextStyle(fontSize: 22,color: mainTextColor, fontWeight: FontWeight.bold),
      bodyLarge: TextStyle(color: mainTextColor),
      bodyMedium: TextStyle(color: mainTextColor),
      bodySmall: TextStyle(color: mainTextColor),
    ),
    popupMenuTheme: PopupMenuThemeData(
      color: Colors.grey[100], // 设置 PopupMenuButton 的背景颜色
      textStyle: TextStyle(fontSize: 18, color: mainTextColor), // 设置菜单文本样式
      iconColor: mainTextColor,
    ),
 
  );
}