Fluent2NavigationDrawer class
The desktop nav pane, Fluent 2's NavDrawer standing on the window's
ground: the hamburger and the app's brand at its head (the hamburger
folds the pane to a 48 rail of glyphs, collapsed), the shell's act as
the primary button under it, then one item per destination (40 tall,
its glyph 20 and 16 before its word in body1, the second ink), the
selected item in body1Strong with its filled glyph in the brand on a
subtle fill, Fluent's selection indicator (a brand pill 4 by 20) at its
start; the account at its foot as a persona that opens the profile,
current while the profile is shown (profileCurrent). On the media
ground (solid) it stands on the dark surface.
The shell mounts it from 1024 wide, and folded to its rail from 640 (a tablet, a narrow window); a page never composes navigation.
Fluent2NavigationDrawer(items: tabs, selectedIndex: 0, onDestinationSelected: select, brand: 'Northwind')
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- Fluent2NavigationDrawer
Constructors
-
A desktop navigation pane of
items.const
Properties
- action → ShellAction?
-
The shell's act: the primary button under the head.
final
- brand → String?
-
The app's name at the head.
final
- collapsed → bool
-
Folded to the rail of glyphs.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
items
→ List<
Fluent2NavItem> -
The destinations, in order.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- noneCurrent → bool
-
Whether no destination is current (the notifications are shown).
final
-
onDestinationSelected
→ ValueChanged<
int> -
Called with a destination's index when it is pressed.
final
- onToggle → VoidCallback?
-
What the hamburger does; null draws no hamburger.
final
- profileCurrent → bool
-
Whether the account's profile is the page shown.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedIndex → int
-
The index of the chosen item.
final
- solid → bool
-
Stand on the dark surface (the media ground).
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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.
override
-
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