FluentThemeData class
Defines the default theme for a FluentApp or FluentTheme.
- Mixed in types
- Annotations
Constructors
-
FluentThemeData({Iterable<
ThemeExtension> ? extensions, Brightness? brightness, VisualDensity? visualDensity, Typography? typography, String? fontFamily, AccentColor? accentColor, Color? activeColor, Color? inactiveColor, Color? inactiveBackgroundColor, Color? scaffoldBackgroundColor, Color? acrylicBackgroundColor, Color? micaBackgroundColor, Color? shadowColor, Color? cardColor, Color? selectionColor, Duration? fasterAnimationDuration, Duration? fastAnimationDuration, Duration? mediumAnimationDuration, Duration? slowAnimationDuration, Curve? animationCurve, ButtonThemeData? buttonTheme, CheckboxThemeData? checkboxTheme, ToggleSwitchThemeData? toggleSwitchTheme, IconThemeData? iconTheme, ContentDialogThemeData? dialogTheme, TooltipThemeData? tooltipTheme, DividerThemeData? dividerTheme, RadioButtonThemeData? radioButtonTheme, ToggleButtonThemeData? toggleButtonTheme, SliderThemeData? sliderTheme, InfoBarThemeData? infoBarTheme, FocusThemeData? focusTheme, ScrollbarThemeData? scrollbarTheme, ResourceDictionary? resources}) -
factory
-
FluentThemeData.raw({required Typography typography, required Map<
Object, ThemeExtension> extensions, required AccentColor accentColor, required Color activeColor, required Color inactiveColor, required Color inactiveBackgroundColor, required Color shadowColor, required Duration fasterAnimationDuration, required Duration fastAnimationDuration, required Duration mediumAnimationDuration, required Duration slowAnimationDuration, required Curve animationCurve, required Brightness brightness, required VisualDensity visualDensity, required Color scaffoldBackgroundColor, required Color acrylicBackgroundColor, required Color micaBackgroundColor, required ButtonThemeData buttonTheme, required CheckboxThemeData checkboxTheme, required ToggleSwitchThemeData toggleSwitchTheme, required IconThemeData iconTheme, 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 Color cardColor, required ResourceDictionary resources, required Color selectionColor}) -
const
Properties
- accentColor → AccentColor
-
The accent color.
final
- acrylicBackgroundColor → Color
-
final
- activeColor → Color
-
final
- animationCurve → Curve
-
final
-
final
- brightness → Brightness
-
final
-
final
- cardColor → Color
-
final
- checkboxTheme → CheckboxThemeData
-
final
- dialogTheme → ContentDialogThemeData
-
final
- dividerTheme → DividerThemeData
-
final
-
extensions
→ Map<
Object, ThemeExtension> -
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
- mediumAnimationDuration → Duration
-
final
-
final
- micaBackgroundColor → Color
-
final
-
final
- radioButtonTheme → RadioButtonThemeData
-
final
- resources → ResourceDictionary
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scaffoldBackgroundColor → Color
-
final
- scrollbarTheme → ScrollbarThemeData
-
final
- selectionColor → Color
-
final
- shadowColor → Color
-
final
- sliderTheme → SliderThemeData
-
final
- slowAnimationDuration → Duration
-
final
- toggleButtonTheme → ToggleButtonThemeData
-
final
- toggleSwitchTheme → ToggleSwitchThemeData
-
final
- tooltipTheme → TooltipThemeData
-
final
- typography → Typography
-
final
- visualDensity → VisualDensity
-
final
Methods
-
copyWith(
{Brightness? brightness, Iterable< ThemeExtension> ? extensions, VisualDensity? visualDensity, Typography? typography, AccentColor? accentColor, Color? activeColor, Color? inactiveColor, Color? inactiveBackgroundColor, Color? scaffoldBackgroundColor, Color? acrylicBackgroundColor, Color? micaBackgroundColor, Color? shadowColor, Color? cardColor, Color? selectionColor, Duration? fasterAnimationDuration, Duration? fastAnimationDuration, Duration? mediumAnimationDuration, Duration? slowAnimationDuration, Curve? animationCurve, ButtonThemeData? buttonTheme, CheckboxThemeData? checkboxTheme, ToggleSwitchThemeData? toggleSwitchTheme, IconThemeData? iconTheme, ContentDialogThemeData? dialogTheme, TooltipThemeData? tooltipTheme, DividerThemeData? dividerTheme, RadioButtonThemeData? radioButtonTheme, ToggleButtonThemeData? toggleButtonTheme, SliderThemeData? sliderTheme, InfoBarThemeData? infoBarTheme, FocusThemeData? focusTheme, ScrollbarThemeData? scrollbarTheme, ResourceDictionary? resources}) → FluentThemeData -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
extension<
T> () → T? - Used to obtain a particular ThemeExtension from extensions.
-
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
Static Methods
-
dark(
) → FluentThemeData -
lerp(
FluentThemeData a, FluentThemeData b, double t) → FluentThemeData -
light(
) → FluentThemeData