BottomNavyBar class
A beautiful and animated bottom navigation that paints a rounded shape around its items to provide a wonderful look.
Update selectedIndex to change the selected item. selectedIndex is required and must not be null.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- BottomNavyBar
Constructors
Properties
- animationDuration → Duration
-
Use this to change the item's animation duration. Defaults to 270ms.
final
- backgroundColor → Color?
-
The background color of the navigation bar. It defaults to
Theme.bottomAppBarColor
if not provided.final - containerHeight → double
-
Defines the bottom navigation bar height. Defaults to 56.
final
- curve → Curve
-
Used to configure the animation curve. Defaults to Curves.linear.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconSize → double
-
The icon size of all items. Defaults to 24.
final
- itemCornerRadius → double
-
The items corner radius, if not set, it defaults to 50.
final
-
items
→ List<
BottomNavyBarItem> -
Defines the appearance of the buttons that are displayed in the bottom
navigation bar. This should have at least two items and five at most.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- mainAxisAlignment → MainAxisAlignment
-
Defines the alignment of the items.
Defaults to MainAxisAlignment.spaceBetween.
final
-
onItemSelected
→ ValueChanged<
int> -
A callback that will be called when a item is pressed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedIndex → int
-
The selected item is index. Changing this property will change and animate
the item being selected. Defaults to zero.
final
- showElevation → bool
-
Whether this navigation bar should show a elevation. Defaults to true.
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.
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