CLNavRailTile class

Voce di menu RAIL (sidebar collassata) condivisa: un ShadIconButton ghost icon-only con tooltip che esce a destra. Stessi stati di CLNavTile: selected = primary pieno + icona bianca; strongHover (flyout aperto) = hover primary pieno; altrimenti hover primary opacizzato.

Inheritance
Available extensions

Constructors

CLNavRailTile({Key? key, required Widget iconBuilder(Color color, double size), required String tooltip, required VoidCallback onTap, bool selected = false, bool strongHover = false, Offset tooltipOffset = const Offset(8, 0), bool enableTooltip = true, Widget wrap(Widget compact)?})
const

Properties

enableTooltip → bool
Mostra il tooltip all'hover. Va messo a false quando un overlay (es. il flyout del gruppo) è aperto: tooltip e flyout escono nello stesso punto e il tooltip coprirebbe le voci.
final
hashCode → int
The hash code for this object.
no setterinherited
iconBuilder → Widget Function(Color color, double size)
Costruttore icona; riceve colore risolto (reattivo all'hover) e size compatta. Un builder (non un Widget) così il colore resta centralizzato.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onTap → VoidCallback
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selected → bool
final
strongHover → bool
Icona del gruppo col flyout aperto → in hover primary pieno + bianco.
final
tooltip → String
final
tooltipOffset → Offset
Offset del tooltip rispetto all'icona (esce a destra del rail).
final
wrap → Widget Function(Widget compact)?
Avvolge il nodo del rail (bottone, 40px) prima del centraggio nel rail. Serve per ancorare un overlay (es. ShadContextMenu del gruppo) al bottone da 40px e non al tile full-width → stessa distanza del tooltip.
final

Methods

animateOnActionTrigger(AnimationInfo animationInfo, {bool hasBeenTriggered = false}) → Widget

Available on Widget, provided by the AnimatedWidgetExtension extension

animateOnPageLoad(AnimationInfo animationInfo) → Widget

Available on Widget, provided by the AnimatedWidgetExtension extension

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<CLNavRailTile>
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
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