Skip to content
参数类型说明
primaryColorColor主色,影响 AppBar、浮动按钮等默认颜色。
colorSchemeColorScheme更推荐使用的颜色系统,包含主色、背景色、错误色等(Material 3 主推)。
scaffoldBackgroundColorColorScaffold 的默认背景色(body 背景色)。
appBarThemeAppBarThemeAppBar 的默认样式,例如背景色、高度、标题样式。
textThemeTextTheme应用的默认文本样式,例如 bodyText1headline6 等。
iconThemeIconThemeData图标的默认样式(颜色、大小)。
elevatedButtonThemeElevatedButtonThemeDataElevatedButton 的默认样式配置。
textButtonThemeTextButtonThemeDataTextButton 的默认样式配置。
outlinedButtonThemeOutlinedButtonThemeDataOutlinedButton 的默认样式配置。
inputDecorationThemeInputDecorationTheme文本输入框(TextField)的默认样式配置。
dividerColorColor分隔线默认颜色。
cardThemeCardTheme卡片(Card)的默认样式。
bottomNavigationBarThemeBottomNavigationBarThemeData底部导航栏样式。
floatingActionButtonThemeFloatingActionButtonThemeDataFAB 样式。
visualDensityVisualDensity控制控件之间的“稠密度”,如紧凑模式。
brightnessBrightness主题亮度(Brightness.lightBrightness.dark)。