FluentCardBaseState class
Everything needed to render a card, independent of appearance and size.
The Dart counterpart of upstream's CardState minus its styling axes.
buildFluentCard takes this rather than FluentCardState, which is what
makes "Fluent's state, my own styling, Fluent's rendering" a supported path
rather than a fork.
- Implementers
- Annotations
Constructors
- FluentCardBaseState({required bool enabled, required bool interactive, required bool selected, required FluentCardOrientation orientation, Widget? preview, Widget? header, Widget? body, })
-
Creates a base state.
const
Properties
- body → Widget?
-
Main content, inset by the card's padding.
final
- enabled → bool
-
Whether the card responds to input at all.
final
-
Action area, inset by the card's padding.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- header → Widget?
-
Title area, inset by the card's padding.
final
- interactive → bool
-
Whether the card was given an
onPressed.final - orientation → FluentCardOrientation
-
Which axis the slots are laid out along.
final
- preview → Widget?
-
Media that bleeds to the card's edge, before every other slot.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selected → bool
-
Whether the card is currently selected.
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