Skip to content
masterclass Buddy

Flutter & Dart · Class

ThemeData

ThemeData is the visual configuration for a MaterialApp or a widget subtree. It supplies shared colors, text styles, and component-specific settings to Material widgets.

Last updated

Syntax

ThemeData({
  ColorScheme? colorScheme,
  Brightness? brightness,
  Color? colorSchemeSeed,
  TextTheme? textTheme,
  bool? useMaterial3,
  Iterable<ThemeExtension>? extensions,
})

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Theme
  • Theme.of
  • ThemeData.from
  • ThemeData.light
  • ThemeData.dark
  • ColorScheme.fromSeed
  • ThemeExtension

Source: ThemeData class - material library - Dart API. Checked 2026-11-03.