ColorThemeData class

Define a color scheme.

New themes can be defined by extending ColorThemeData.

カラースキームを定義します。

ColorThemeDataをエクステンションすることで新しいテーマを定義することが可能です。

See also:

Available Extensions
Annotations

Properties

appBarColor Color?
Background color of AppBar.
final
background Color
Background color.
final
brightness Brightness
Define Brightness for the application. Brightness.dark will set it to dark mode and Brightness.light will set it to light mode.
final
canvas Color
Canvas background color.
no setter
dialogColor Color?
Background color of the dialog.
final
disabled Color
Color when inactive.
final
error Color
Color for error.
final
hashCode int
The hash code for this object.
no setterinherited
info Color
Colors for information display.
final
inversePrimary Color
Inverted black and white primary color.
final
inverseSurface Color
Inverted black and white surface color.
final
onAppBarColor Color?
Color of text and icons in AppBar.
final
onBackground Color
color of text and icons on background. Usually the text color.
final
onDialogColor Color?
Color of text and icons on dialogColor.
final
onDisabled Color
Color of text and icons on disabled.
final
onError Color
Color of text and icons on error.
final
onExpandedAppBarColor Color?
Color of text and icons when AppBar is open.
final
onInfo Color
Color of text and icons on info.
final
onInverseSurface Color
Color of text and icons on inverseSurface.
final
onPrimary Color
Color of text and icons on primary.
final
onPrimaryContainer Color
Color of text and icons on primaryContainer.
final
onSecondary Color
Color of text and icons on secondary.
final
onSecondaryContainer Color
Color of text and icons on secondaryContainer.
final
onSuccess Color
Color of text and icons on success.
final
onSurface Color
Color of text and icons on surface.
final
onSurfaceVariant Color
Color of text and icons on surfaceVariant.
final
onTertiary Color
Color of text and icons on tertiary.
final
onTertiaryContainer Color
Color of text and icons on tertiaryContainer.
final
onWarning Color
Color of text and icons on warning.
final
onWeak Color
Color of text and icons on weak.
final
outline Color
Colors for Borderline and Divider.
final
outlineVariant Color
Alternative colors for Borderline and Divider.
final
primary Color
Primary key color.
final
primaryContainer Color
Primary container color.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaffoldBackgroundColor Color
Background color of Scaffold.
no setter
secondary Color
Secondary key color.
final
secondaryContainer Color
Secondary container color.
final
shadow Color
Shadow color.
final
splashColor Color?
Color for the effect when the button is tapped.
final
success Color
Color for successful processing.
final
surface Color
Background color for dialogs, cards, etc.
final
surfaceVariant Color
Alternate background color for dialogs, cards, etc.
final
tertiary Color
Tertiary key color.
final
tertiaryContainer Color
Searshally container color.
final
warning Color
Colors for Warning.
final
weak Color
Color for light text color.
final

Methods

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