SelectedStrip class

Horizontal carousel rendered when DisplayMode.selected. v1: a simple thumbnail strip — telegram-iOS's MediaPickerSelectedListNode wallpapered bubble-preview parity is post-v1, gated on banlu's bubble system catching up.

Tiles reuse PickerGridItem so the selection ring + duration badge render identically to the grid; tap-on-ring removes the item from the strip with a fade + horizontal-collapse animation. Removing the last item bubbles up via SelectionContext's notify; the page's _clampDisplayMode flips DisplayMode back to .all.

Inheritance
Available extensions

Constructors

SelectedStrip({Key? key, required SelectionContext selection, required ThumbnailCache cache, required SheetController sheetController, required Map<String, ComposeEntry> entriesById, required PickerSourceRegistry sourceRegistry, required ValueChanged<XAsset> onTap})
Creates the strip.
const

Properties

cache → ThumbnailCache
Where thumbnails load from.
final
entriesById → Map<String, ComposeEntry>
Compose entries by asset id.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onTap → ValueChanged<XAsset>
Called on a tap of a tile's body.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selection → SelectionContext
The picked assets shown.
final
sheetController → SheetController
The picker's sheet, which the strip's scroll coordinates with.
final
sourceRegistry → PickerSourceRegistry
Where tiles record their transition sources.
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<SelectedStrip>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sliver({Key? key}) → Widget

Available on Widget, provided by the SliverExtension extension

Wraps this widget in a SliverToBoxAdapter.
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
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

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