FlipBoxNavigationBar class

A Custom Bottom Navigation Bar that is displayed at the bottom of the screen. The FlipBoxNavigationBar animated between the selected and the unselected state it similar to a the rotation of a rectangle box. This navigation bar is usually can be used in a Scaffold, by providing it as the Scaffold.bottomNavigationBar argument.

Inheritance

Constructors

FlipBoxNavigationBar({required List<FlipBoxNavigationBarItem> items, int currentIndex = 0, IconThemeData selectedItemTheme = const IconThemeData(size: 24.0, color: Colors.black), IconThemeData unselectedItemTheme = const IconThemeData(size: 24.0, color: Colors.black), double verticalPadding = 16, dynamic backgroundColor, TextStyle? textStyle, Duration duration = const Duration(milliseconds: 800), ValueChanged<int>? onTap, Key? key})
Creates a flip box bottom navigation bar which can be used with Scaffold's Scaffold.bottomNavigationBar argument.

Properties

backgroundColor → dynamic
The background color of FlipBoxNavigationBar itself.
final
currentIndex int
The index of the selected FlipBoxNavigationBar in items.
final
duration Duration
The duration of animation.
final
hashCode int
The hash code for this object.
no setterinherited
items List<FlipBoxNavigationBarItem>
Defines the list of items to show on the bottom navigation bar.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxIconSize double
Calculates the maximum size of selected/unselected icon size of FlipBoxNavigationBarItem.
no setter
onTap ValueChanged<int>?
Called when one of the items is tapped.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedItemTheme IconThemeData
Defines the size and color of the item's icon when it is selected.
final
textStyle TextStyle?
Defines the style of the item's name when it is selected.
final
unselectedItemTheme IconThemeData
Defines the size and color of the item's icon when it is unselected.
final
verticalPadding double
The amount of padding to provide for each FlipBoxNavigationBarTile.
final

Methods

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