M3ECarouselItem class

One carousel item: image, optional text, and an optional transform.

onTap enables the item. A null onTap leaves it disabled. When applyDynamicTextContentTransform is true, the text follows the item's current size on every frame. Large slots show title and subtitle. Medium slots hide title. Small slots show prefixText on that same line.

Constructors

M3ECarouselItem({required Widget image, Widget? title, Widget? subtitle, Widget? prefixText, bool applyDynamicTextContentTransform = true, VoidCallback? onTap, Widget? transform, M3ECarouselScrim? showScrim, double aspectRatio = 1, String? semanticLabel})
Creates a carousel item.
const

Properties

applyDynamicTextContentTransform → bool
Size-based text. The visible line follows the item's current size.
final
aspectRatio → double
Width divided by height. Clamped by the carousel theme for multi-aspect.
final
enabled → bool
Whether the item accepts taps.
no setter
hashCode → int
The hash code for this object.
no setterinherited
image → Widget
Image or other visual, clipped to the item.
final
onTap → VoidCallback?
Item tap. Null disables the item.
final
prefixText → Widget?
Short text for a small slot. Shown on the subtitle line.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel → String?
Spoken name. Also used as the Show all row title.
final
showScrim → M3ECarouselScrim?
Scrim between image and the text.
final
subtitle → Widget?
Supporting text under title.
final
title → Widget?
Title, shown on large slots when dynamic text is on.
final
transform → Widget?
Full-screen destination opened after the tap pulse.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
textOverlay({required double slotMain}) → Widget?
Text for the visible slot. Null when this item has no text to show.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited