MoltenBottomNavigationBar class

Inheritance

Constructors

MoltenBottomNavigationBar({Key? key, double barHeight = kBottomNavigationBarHeight, Color? barColor, double domeHeight = 15.0, double domeWidth = 100, Color? domeCircleColor, double domeCircleSize = 50.0, required List<MoltenTab> tabs, EdgeInsets margin = EdgeInsets.zero, required int selectedIndex, required dynamic onTabChange(int index), Duration? duration, Curve curve = Curves.linear, Color? borderColor, double borderSize = 0, BorderRadius? borderRaduis})
An animated bottom navigation that makes your app looks better with customizable attrinutes

Properties

barColor Color?
specify a color to be used as a background color, Default is Theme.bottomAppBarColor
final
barHeight double
specify a Height for the bar, Default is kBottomNavigationBarHeight
final
borderColor Color?
Applied to all border sides
final
borderRaduis BorderRadius?
How much each angle is curved. Default is: (topLeft: Radius.circular(10), topRight: Radius.circular(10))
final
borderSize double
Applied to all 4 border sides, Default is 0
final
curve Curve
Select a Curve value for the dome animation. Default is Curves.linear
final
domeCircleColor Color?
If a null value is passed, the domeCircleColor will be Theme.primaryColor
final
domeCircleSize double
The size of the inner circle representing a seleted tab
final
domeHeight double
specify a Height for the Dome above tabs, Default is 15.0
final
domeWidth double
If domeWidth is null, it will be set to 100
final
duration Duration?
How long the animation should last, Default is Duration(milliseconds: 150)
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
margin EdgeInsets
Spacing around the bar, Default is EdgeInsets.zero
final
onTabChange → dynamic Function(int index)
A callback function that will be triggered whenever a MoltenTab is clicked, and will return it's index.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedIndex int
The currently selected tab
final
tabs List<MoltenTab>
List of MoltenTab, each wil have an icon as the main widget, selcted color and unselected color
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