NavTab class

A tab-based navigation item for NavigationScreen, featuring icons and labels.

This class supports both selected and unselected states for icons, enabling adaptive UIs in BottomNavigationBar, Sidebar, or NavigationRail. Labels provide accessibility and visual cues, while the builder defines the tab's content page. Use with IndexedStack for efficient state persistence during navigation transitions, minimizing rebuilds in ArcaneApp integrations.

Inheritance

Constructors

const

Properties

builder Widget Function(BuildContext)
finalinherited
hashCode int
The hash code for this object.
no setterinherited
icon IconData
final
label String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedIcon IconData?
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
The equality operator.
inherited