ThemeData class
Defines the default theme for a FluentApp or FluentTheme.
- Mixed in types
- Annotations
Constructors
-
ThemeData({Brightness? brightness, Typography? typography, AccentColor? accentColor, Color? activeColor, Color? inactiveColor, Color? inactiveBackgroundColor, Color? disabledColor, Color? scaffoldBackgroundColor, Color? shadowColor, ButtonState<
MouseCursor> ? inputMouseCursor, Duration? fasterAnimationDuration, Duration? fastAnimationDuration, Duration? mediumAnimationDuration, Duration? slowAnimationDuration, Curve? animationCurve, ButtonThemeData? buttonTheme, CheckboxThemeData? checkboxTheme, ToggleSwitchThemeData? toggleSwitchTheme, IconThemeData? iconTheme, SplitButtonThemeData? splitButtonTheme, ContentDialogThemeData? dialogTheme, TooltipThemeData? tooltipTheme, DividerThemeData? dividerTheme, RadioButtonThemeData? radioButtonTheme, ToggleButtonThemeData? toggleButtonTheme, SliderThemeData? sliderTheme, InfoBarThemeData? infoBarTheme, FocusThemeData? focusTheme, ScrollbarThemeData? scrollbarTheme}) -
factory
-
ThemeData.raw({required Typography typography, required AccentColor accentColor, required Color activeColor, required Color inactiveColor, required Color inactiveBackgroundColor, required Color disabledColor, required Color shadowColor, required Duration fasterAnimationDuration, required Duration fastAnimationDuration, required Duration mediumAnimationDuration, required Duration slowAnimationDuration, required Curve animationCurve, required Brightness brightness, required Color scaffoldBackgroundColor, required ButtonThemeData buttonTheme, required CheckboxThemeData checkboxTheme, required ToggleSwitchThemeData toggleSwitchTheme, required IconThemeData iconTheme, required SplitButtonThemeData splitButtonTheme, required ContentDialogThemeData dialogTheme, required TooltipThemeData tooltipTheme, required DividerThemeData dividerTheme, required RadioButtonThemeData radioButtonTheme, required ToggleButtonThemeData toggleButtonTheme, required SliderThemeData sliderTheme, required InfoBarThemeData infoBarTheme, required FocusThemeData focusTheme, required ScrollbarThemeData scrollbarTheme, required ButtonState<
MouseCursor> inputMouseCursor}) -
const
Properties
- accentColor → AccentColor
-
final
- activeColor → Color
-
final
- animationCurve → Curve
-
final
- brightness → Brightness
-
final
-
final
- checkboxTheme → CheckboxThemeData
-
final
- dialogTheme → ContentDialogThemeData
-
final
- disabledColor → Color
-
final
- dividerTheme → DividerThemeData
-
final
- fastAnimationDuration → Duration
-
final
- fasterAnimationDuration → Duration
-
final
- focusTheme → FocusThemeData
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconTheme → IconThemeData
-
final
- inactiveBackgroundColor → Color
-
final
- inactiveColor → Color
-
final
- infoBarTheme → InfoBarThemeData
-
final
-
inputMouseCursor
→ ButtonState<
MouseCursor> -
The mouse cursor used by many inputs, such as Button,
RadioButton and ToggleSwitch. By default, if the
state is pressing or hovering, SystemMouseCursors.click
is used, otherwise MouseCursor.defer is used.
final
- mediumAnimationDuration → Duration
-
final
-
final
-
final
- radioButtonTheme → RadioButtonThemeData
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scaffoldBackgroundColor → Color
-
final
- scrollbarTheme → ScrollbarThemeData
-
final
- shadowColor → Color
-
final
- sliderTheme → SliderThemeData
-
final
- slowAnimationDuration → Duration
-
final
- splitButtonTheme → SplitButtonThemeData
-
final
- toggleButtonTheme → ToggleButtonThemeData
-
final
- toggleSwitchTheme → ToggleSwitchThemeData
-
final
- tooltipTheme → TooltipThemeData
-
final
- typography → Typography
-
final
Methods
-
copyWith(
{Brightness? brightness, Typography? typography, AccentColor? accentColor, Color? activeColor, Color? inactiveColor, Color? inactiveBackgroundColor, Color? disabledColor, Color? scaffoldBackgroundColor, Color? shadowColor, Duration? fasterAnimationDuration, Duration? fastAnimationDuration, Duration? mediumAnimationDuration, Duration? slowAnimationDuration, Curve? animationCurve, ButtonState< MouseCursor> ? inputMouseCursor, ButtonThemeData? buttonTheme, CheckboxThemeData? checkboxTheme, ToggleSwitchThemeData? toggleSwitchTheme, IconThemeData? iconTheme, SplitButtonThemeData? splitButtonTheme, ContentDialogThemeData? dialogTheme, TooltipThemeData? tooltipTheme, DividerThemeData? dividerTheme, RadioButtonThemeData? radioButtonTheme, ToggleButtonThemeData? toggleButtonTheme, SliderThemeData? sliderTheme, InfoBarThemeData? infoBarTheme, FocusThemeData? focusTheme, ScrollbarThemeData? scrollbarTheme}) → ThemeData -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited