Fluent2ComponentThemes class

Every component theme in one, as ThemeData holds Material's: what Fluent2ThemeData carries and lerps. Each is empty by default: the part draws Fluent's own.

Mixed-in types
Annotations

Constructors

Fluent2ComponentThemes({Fluent2Style primaryButton = const Fluent2Style(), Fluent2Style secondaryButton = const Fluent2Style(), Fluent2Style outlineButton = const Fluent2Style(), Fluent2Style subtleButton = const Fluent2Style(), Fluent2Style transparentButton = const Fluent2Style(), Fluent2Style iconButton = const Fluent2Style(), Fluent2Style checkbox = const Fluent2Style(), Fluent2Style radio = const Fluent2Style(), Fluent2Style switchTheme = const Fluent2Style(), Fluent2Style textField = const Fluent2Style(), Fluent2Style tag = const Fluent2Style(), Fluent2Style slider = const Fluent2Style(), Fluent2Style segmentedButton = const Fluent2Style(), Fluent2Style tabList = const Fluent2Style(), Fluent2Style card = const Fluent2Style(), Fluent2Style listItem = const Fluent2Style(), Fluent2Style dialog = const Fluent2Style(), Fluent2Style bottomSheet = const Fluent2Style(), Fluent2Style menu = const Fluent2Style(), Fluent2Style toast = const Fluent2Style(), Fluent2Style tooltip = const Fluent2Style(), Fluent2Style badge = const Fluent2Style(), Fluent2Style avatar = const Fluent2Style()})
All empty: Fluent's own throughout.
const

Properties

avatar → Fluent2Style
An avatar's.
final
badge → Fluent2Style
A badge's.
final
bottomSheet → Fluent2Style
A bottom sheet's.
final
card → Fluent2Style
A card's.
final
checkbox → Fluent2Style
A check box's.
final
dialog → Fluent2Style
A dialog's.
final
hashCode → int
The hash code for this object.
no setteroverride
iconButton → Fluent2Style
An icon button's, read before its appearance's button theme.
final
isEmpty → bool
True when every theme is empty.
no setter
listItem → Fluent2Style
A list row's.
final
A menu's and a popover's surface.
final
outlineButton → Fluent2Style
An outline button's: the stroke on the ground.
final
primaryButton → Fluent2Style
A primary button's: the brand fill, the one act of a surface.
final
radio → Fluent2Style
A radio's.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secondaryButton → Fluent2Style
A secondary button's, the default appearance: the neutral fill in its stroke.
final
segmentedButton → Fluent2Style
The segmented strip's.
final
slider → Fluent2Style
A slider's.
final
subtleButton → Fluent2Style
A subtle button's: no fill until hovered.
final
switchTheme → Fluent2Style
A switch's.
final
tabList → Fluent2Style
A tab bar's tabs.
final
tag → Fluent2Style
A tag's and an interaction tag's.
final
textField → Fluent2Style
A field's frame: the text field, text area, search field, select, combobox, number field and the date picker's field.
final
toast → Fluent2Style
A toast's.
final
tooltip → Fluent2Style
A tooltip's.
final
transparentButton → Fluent2Style
A transparent button's: no fill in any state, brand words while hovered.
final

Methods

copyWith({Fluent2Style? primaryButton, Fluent2Style? secondaryButton, Fluent2Style? outlineButton, Fluent2Style? subtleButton, Fluent2Style? transparentButton, Fluent2Style? iconButton, Fluent2Style? checkbox, Fluent2Style? radio, Fluent2Style? switchTheme, Fluent2Style? textField, Fluent2Style? tag, Fluent2Style? slider, Fluent2Style? segmentedButton, Fluent2Style? tabList, Fluent2Style? card, Fluent2Style? listItem, Fluent2Style? dialog, Fluent2Style? bottomSheet, Fluent2Style? menu, Fluent2Style? toast, Fluent2Style? tooltip, Fluent2Style? badge, Fluent2Style? avatar}) → Fluent2ComponentThemes
This with the named themes changed.
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.
override

Static Methods

lerp(Fluent2ComponentThemes a, Fluent2ComponentThemes b, double t) → Fluent2ComponentThemes
Between a and b, theme by theme.