LiquidDestination class

One navigation destination: a tab bar cell and a sidebar row.

Annotations

Constructors

LiquidDestination({required Widget icon, required String label, Widget? selectedIcon, LiquidBadge? badge, LiquidPlacement placement = LiquidPlacement.everywhere, String? sfSymbol, LiquidDestinationRole role = LiquidDestinationRole.standard})
Creates a destination.
const

Properties

badge → LiquidBadge?
Optional count or dot.
final
hashCode → int
The hash code for this object.
no setteroverride
icon → Widget
Icon when not selected. Sized and coloured by the shell.
final
label → String
Visible text and semantics label. Must not be empty, and must be unique within a LiquidShell's destinations.
final
placement → LiquidPlacement
Tab bar and sidebar, or sidebar only.
final
role → LiquidDestinationRole
Standard, or the search tab.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedIcon → Widget?
Icon when selected. Falls back to icon.
final
sfSymbol → String?
SF Symbol name (for example house) for native chrome. Native chrome needs it: a shell uses native chrome only when every destination (and its trailing action) has one, and otherwise draws Flutter chrome, also on iOS 26. In debug, such a shell logs one line naming what lacks one.
final

Methods

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
Field by field. Widgets (icon, selectedIcon) compare by identity; use const or stable instances, or two equal-looking destinations are never ==.
override