CLNavTile class

Voce di menu DESKTOP condivisa da sidebar/drawer (voci azienda) e dai menu contestuali (voci cliente): un ShadButton ghost full-width con icona opzionale, label ed eventuale trailing (es. chevron dei gruppi).

Stati (vedi _NavTileColors): selected = rotta corrente (primary pieno + bianco), strongHover = header di dropdown aperto (hover primary pieno + bianco). Gli header dei gruppi NON usano selected: non si evidenziano quando un figlio è attivo.

Inheritance
Available extensions

Constructors

CLNavTile({Key? key, required String label, required VoidCallback onTap, Widget iconBuilder(Color color, double size)?, Widget? trailing, bool selected = false, bool strongHover = false, double indent = 0})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
iconBuilder Widget Function(Color color, double size)?
Costruttore dell'icona leading; riceve il colore già risolto (reattivo all'hover) e la size di default. Null = nessuna icona (voce foglia indentata sotto un gruppo).
final
indent double
Padding sinistro esterno (indentazione sotto un gruppo).
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label String
final
onTap VoidCallback
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selected bool
La voce È la rotta corrente → primary pieno + contenuto bianco.
final
strongHover bool
Header di un dropdown aperto → in hover primary pieno + bianco.
final
trailing Widget?
Widget di coda (es. chevron rotante di un gruppo). NON passare un colore esplicito: eredita dall'IconTheme del bottone → reagisce a hover/stato.
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<CLNavTile>
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