appLightThemeData top-level property
Implementation
final ThemeData appLightThemeData = ThemeData(
brightness: Brightness.light,
primaryColor: CommentColorS.colffffff,
splashColor: Colors.white.withOpacity(0),
highlightColor: Colors.white.withOpacity(0),
splashFactory: const NormalNoSplashFactory(),
scaffoldBackgroundColor:
CommentColorS.colffffff, //Scaffold的背景颜色。典型Material应用程序或应用程序内页面的背景颜色
textTheme: const TextTheme(
/// 字体24
headline5: TextStyle(
color: CommentColorS.col333333,
fontWeight: FontWeight.bold,
),
bodyText1: TextStyle(
color: CommentColorS.col333333,
fontSize: 16.0,
),
bodyText2:
TextStyle(color: CommentColorS.col333333, fontSize: 14)), // 字体主题
appBarTheme: const AppBarTheme(
iconTheme: IconThemeData(color: Colors.black),
backgroundColor: Colors.white,
),
);