ThemeData class

Available extensions

Constructors

ThemeData({ColorScheme? colorScheme, Brightness? brightness, TargetPlatform? platform, String? fontFamily, List<String>? fontFamilyFallback, VisualDensity? visualDensity, TapTargetSize? tapTargetSize, Color? scaffoldBackgroundColor, ColorScheme? elevatedColorScheme})
factory

Properties

bodyTextStyle → TextStyle
latefinal
brightness → Brightness
no setter
colorScheme → ColorScheme
final
displayTextStyle → TextStyle
latefinal
elevated → ThemeData

Available on ThemeData, provided by the AppSurfaceThemeExt extension

no setter
elevatedColorScheme → ColorScheme?
What sheets present with, where it differs: .agents/surfaces.md.
final
fontFamily → String?
final
fontFamilyFallback → List<String>?
final
hashCode → int
The hash code for this object.
no setterinherited
iconTheme → IconThemeData
no setter
platform → TargetPlatform
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scaffoldBackgroundColor → Color
final
tapTargetSize → TapTargetSize
final
visualDensity → VisualDensity
final

Methods

copyWith({ColorScheme? colorScheme, Brightness? brightness, TargetPlatform? platform, String? fontFamily, List<String>? fontFamilyFallback, VisualDensity? visualDensity, TapTargetSize? tapTargetSize, Color? scaffoldBackgroundColor, ColorScheme? elevatedColorScheme}) → ThemeData
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

estimateBrightnessForColor(Color color) → Brightness
Black or white, whichever reads against color.