FluentTeachingPopoverState class

A teaching popover's fully resolved state, including the design axis.

The counterpart of FluentButtonState: base state plus exactly appearance.

Inheritance
Annotations

Constructors

FluentTeachingPopoverState({required Widget title, required Widget body, required String dismissSemanticLabel, required FluentTeachingPopoverAppearance appearance, Widget? header, Widget? media, VoidCallback? onDismiss, Widget? primaryAction, Widget? secondaryAction, FluentTeachingPopoverCarousel? carousel})
Creates a resolved state.
const

Properties

appearance → FluentTeachingPopoverAppearance
Fill treatment.
final
body → Widget
The explanatory paragraph. body1 in every variant.
finalinherited
Multi-step tour state, or null for a single-step popover.
finalinherited
dismissSemanticLabel → String
Announced for the dismiss button.
finalinherited
hasFooter → bool
Whether anything is drawn below the body.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
hasHeader → bool
Whether anything is drawn above the title.
no setterinherited
The small caption above the media — Figma's Badge slot. Optional.
finalinherited
media → Widget?
The image or illustration between the header and the title. Optional, and drawn exactly as handed over: Figma's 288 x 90 placeholder is a stand-in for the caller's artwork, not a size this component imposes.
finalinherited
onDismiss → VoidCallback?
Invoked by the header's dismiss button. Null draws no dismiss button at all rather than a disabled one — Figma has no disabled variant of it.
finalinherited
primaryAction → Widget?
The confirming action, drawn first and closest to the centre. Normally a FluentButton with FluentButtonAppearance.primary.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secondaryAction → Widget?
The secondary action. Normally a FluentButton with the default FluentButtonAppearance.secondary.
finalinherited
title → Widget
The headline. subtitle2 in every variant.
finalinherited

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