MaterialTheme constructor

const MaterialTheme({
  1. ThemeBrightness brightness = ThemeBrightness.light,
  2. String fontFamily = 'Roboto',
  3. Map<String, int> colorScheme = m3LightColorScheme,
  4. Map<String, TextStyleSpec> textTheme = m3TextTheme,
  5. IrColor? scaffoldBackground,
  6. AppBarThemeSpec appBar = const AppBarThemeSpec(),
  7. CardThemeSpec card = const CardThemeSpec(),
  8. Map<String, Map<String, DartValue>> buttonStyles = const {},
  9. 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,
});