ThemeData class Null safety
- Annotations
-
- @freezed
Constructors
-
ThemeData({bool? applyElevationOverlayColor, TargetPlatform? platform, bool? useMaterial3, VisualDensity? visualDensity, Brightness? brightness, Color? canvasColor, Color? cardColor, ColorScheme? colorScheme, Color? colorSchemeSeed, Color? dialogBackgroundColor, Color? disabledColor, Color? dividerColor, Color? focusColor, Color? highlightColor, Color? hintColor, Color? hoverColor, Color? indicatorColor, Color? primaryColor, Color? primaryColorDark, Color? primaryColorLight, MaterialColor? primarySwatch, Color? scaffoldBackgroundColor, Color? secondaryHeaderColor, Color? shadowColor, Color? splashColor, Color? unselectedWidgetColor, String? fontFamily, List<
String> ? fontFamilyFallback, String? package, TextTheme? textTheme}) -
constfactory
-
ThemeData.fromJson(Map<
String, Object?> json) -
factory
Properties
- applyElevationOverlayColor → bool?
-
read-only, inherited
- brightness → Brightness?
-
read-only, inherited
- canvasColor → Color?
-
read-only, inherited
- cardColor → Color?
-
read-only, inherited
- colorScheme → ColorScheme?
-
read-only, inherited
- colorSchemeSeed → Color?
-
read-only, inherited
-
copyWith
→ $ThemeDataCopyWith<
ThemeData> -
@JsonKey(ignore: true), read-only, inherited
- dialogBackgroundColor → Color?
-
read-only, inherited
- disabledColor → Color?
-
read-only, inherited
- dividerColor → Color?
-
read-only, inherited
- focusColor → Color?
-
read-only, inherited
- fontFamily → String?
-
read-only, inherited
-
fontFamilyFallback
→ List<
String> ? -
read-only, inherited
- hashCode → int
-
The hash code for this object.
read-only, inherited
- highlightColor → Color?
-
read-only, inherited
- hintColor → Color?
-
read-only, inherited
- hoverColor → Color?
-
read-only, inherited
- indicatorColor → Color?
-
read-only, inherited
- package → String?
-
read-only, inherited
- platform → TargetPlatform?
-
read-only, inherited
- primaryColor → Color?
-
read-only, inherited
- primaryColorDark → Color?
-
read-only, inherited
- primaryColorLight → Color?
-
read-only, inherited
- primarySwatch → MaterialColor?
-
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- scaffoldBackgroundColor → Color?
-
read-only, inherited
- secondaryHeaderColor → Color?
-
read-only, inherited
- shadowColor → Color?
-
read-only, inherited
- splashColor → Color?
-
read-only, inherited
- textTheme → TextTheme?
-
read-only, inherited
- unselectedWidgetColor → Color?
-
read-only, inherited
- useMaterial3 → bool?
-
read-only, inherited
- visualDensity → VisualDensity?
-
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited