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, ), ); }