SeniorBottomNavigationBar class

Inheritance

Constructors

SeniorBottomNavigationBar({Key? key, required int currentIndex, required List<SeniorBottomNavigationBarItem> items, required dynamic onTap(int), SeniorBottomNavigationBarStyle? style})
Creates a bottom navigation bar component.
const

Properties

currentIndex int
The index representing the item initially selected in the bottom navigation bar.
final
hashCode int
The hash code for this object.
no setterinherited
items List<SeniorBottomNavigationBarItem>
The bottom navigation bar items.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onTap → dynamic Function(int)
Callback function executed when an item from the bottom navigation bar is selected. Receives the index of the selected item.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style SeniorBottomNavigationBarStyle?
The component's style definitions. Allows you to configure: SeniorBottomNavigationBarStyle.badgeColor the badge color of the bottom navigation bar items. SeniorBottomNavigationBarStyle.badgeItemColor the content color of badges for bottom navigation bar items. SeniorBottomNavigationBarStyle.color the color of the bottom navigation bar. SeniorBottomNavigationBarStyle.selectedItemColor the color of the selected bottom navigation bar item. SeniorBottomNavigationBarStyle.unselectedItemColor the color of unselected items from the bottom navigation bar.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
buildBottomNavBarItems({required Color color, required Color badgeColor, required Color badgeItemColor}) List<BottomNavigationBarItem>
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.
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