MaterialTheme constructor
const
MaterialTheme({
- ThemeBrightness brightness = ThemeBrightness.light,
- String fontFamily = 'Roboto',
- Map<
String, int> colorScheme = m3LightColorScheme, - Map<
String, TextStyleSpec> textTheme = m3TextTheme, - IrColor? scaffoldBackground,
- AppBarThemeSpec appBar = const AppBarThemeSpec(),
- CardThemeSpec card = const CardThemeSpec(),
- Map<
String, Map< buttonStyles = const {},String, DartValue> > - bool tapTargetPadded = true,
Implementation
const MaterialTheme({
this.brightness = ThemeBrightness.light,
this.fontFamily = 'Roboto',
this.colorScheme = m3LightColorScheme,
this.textTheme = m3TextTheme,
this.scaffoldBackground,
this.appBar = const AppBarThemeSpec(),
this.card = const CardThemeSpec(),
this.buttonStyles = const {},
this.tapTargetPadded = true,
});