DesignNavigationDetails class

What a look lays the navigation out from.

Annotations

Constructors

DesignNavigationDetails({required DesignNavigationMode mode, required List<Widget> destinations, required int selectedIndex, required Animation<double> visibility})
The state; the shell makes it.
const

Properties

destinations → List<Widget>
The destinations, built: each presses, takes the keys and speaks round the look's paint. A bar lays them in a row, a rail or a sidebar in a column.
final
hashCode → int
The hash code for this object.
no setterinherited
mode → DesignNavigationMode
A bar, a rail or a sidebar.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedIndex → int
The selected destination.
final
visibility → Animation<double>
How far the bar is shown, on the shell's spring, as DesignAdaptiveShell.showNavigation changes: 1 shown, 0 gone. An underdamped spring runs past either; clamp it before an opacity.
final

Methods

group(Widget destinations) → Widget
destinations, laid out by the look, as one group: in a bar a screen reader hears it as the tab bar, the destinations its tabs. A tab bar holds tabs and nothing else (Flutter fails one that holds anything else), so a look whose bar holds more than the destinations (an action beside them, a compose button) places this round the destinations alone, the action outside it. Without it the shell takes the whole bar for the tab bar. In a rail or a sidebar it adds nothing.
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
The equality operator.
inherited