FluentTeachingPopoverCarousel class

Multi-step state for a teaching popover's footer.

The Figma .TeachingPopover - Footer set's Type axis: Single is this being null, Multi is it being present. Upstream splits the same two along TeachingPopoverFooter and TeachingPopoverCarouselFooter.

Annotations

Constructors

FluentTeachingPopoverCarousel({required int steps, required int activeStep, ValueChanged<int>? onStepSelected, Widget? pageCount, String stepSemanticLabel(int index)?})
Creates carousel state for a tour of steps pages.
const

Properties

activeStep → int
The page being shown, zero-based. Its dot is drawn as a pill.
final
hashCode → int
The hash code for this object.
no setterinherited
onStepSelected → ValueChanged<int>?
Invoked with the page a dot selects. Null makes the dots inert — which is a real state, not a greyed-out one: they stop taking focus entirely.
final
pageCount → Widget?
The "1 of 4" label beside the dots. Omit it to draw dots alone.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
steps → int
How many pages the tour has. One dot is drawn per page.
final
stepSemanticLabel → String Function(int index)?
Announced for the dot at the given zero-based index.
final

Methods

labelFor(int index) → String
The label for the dot at index.
localized(FluentLocalizations l10n) → FluentTeachingPopoverCarousel
This carousel with stepSemanticLabel supplied from l10n when the caller named none.
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