NaviBar class

Inheritance

Constructors

const

Properties

backgroundColor Color?
Defines the background color. Defaults to null, NaviBar will then use the Theme background color.
final
barHeight double?
This determines the height of a NaviBar. Defaults to 85.
final
barPadding EdgeInsets?
Sets the padding of a NaviBar. Defaults to null.
final
borderRadius BorderRadius?
The border radius of a NaviBar. Defaults to null.
final
curve Curve
Sets the animation curve. Defaults to Curves.linear.
final
duration Duration
Defines the duration of the animation. Defaults to 250 milliseconds.
final
hashCode int
The hash code for this object.
no setterinherited
items List<NaviBarItem>
The tabs in a NaviBar. Each NaviBarItem becomes a tab.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onTap ValueChanged<int>
Opens the selected tab
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedIconColor Color?
Sets the color for the selected icon. Defaults to null. NaviBar will then use the Theme background color.
final
selectedIconSize double
The size of the selected icon. Defaults to 32.
final
selectedIndex int
This indicates the selected icon in a NaviBar. Defaults to selectedIndex = 0, which selects the first icon from the left.
final
selectedTabColor Color?
Sets the color for the selected tab. Defaults to null, NaviBar will then use the Theme scaffold background color.
final
type NaviBarType
Select the preferred type of NaviBar. Defaults to NaviBarType.basic
final
unselectedIconColor Color?
Sets color for the unselected icons. Defaults to null.
final
unselectedIconSize double
The size of the unselected icons. Defaults to 24.
final
unselectedTabColor Color?
Sets the color for the unselected tabs. Defaults to null. NaviBar will then use the Theme background color.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _NaviBarState
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}) 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