MoltenBottomNavigationBar class
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