CustomBottomIndicatorBar class
Constructors
-
CustomBottomIndicatorBar({Key? key, required ValueChanged<int> onTap, required List<BottomNavigationBarItem> items, Color? activeColor, Color? inactiveColor, Color? indicatorColor, Color? shadowColor, Color? backgroundColor, bool shadow = false, int currentIndex = 0, TextStyle? selectedLabelStyle, TextStyle? unselectedLabelStyle, IconThemeData? unselectedIconTheme, IconThemeData? selectedIconTheme, int animationDuration = 180, bool? showSelectedLabels, bool? showUnselectedLabels, double? elevation})
-
Properties
-
activeColor
→ Color?
-
The value of activeColor.
If
null
BottomNavigationBarThemeData.selectedItemColor is used.
If BottomNavigationBarThemeData.selectedItemColor is null,
then ThemeData.indicatorColor is used.
final
-
animationDuration
→ int
-
Animation duration for indicator to move from one position to another.
final
-
backgroundColor
→ Color?
-
The value of backgroundColor.
If
null
BottomNavigationBarThemeData.backgroundColor is used.
If BottomNavigationBarThemeData.backgroundColor is null,
then ThemeData.bottomAppBarColor is used.
final
-
currentIndex
→ int
-
Starting index when the widget is rendered.
final
-
elevation
→ double?
-
The z-coordinate of this CustomBottomIndicatorBar.
If
null
BottomNavigationBarThemeData.elevation is used.
If BottomNavigationBarThemeData.elevation is null, defaults to 8.0
.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
inactiveColor
→ Color?
-
The value of inactiveColor.
If
null
BottomNavigationBarThemeData.unselectedItemColor is used.
If BottomNavigationBarThemeData.unselectedItemColor is null,
then ThemeData.unselectedWidgetColor is used.
final
-
indicatorColor
→ Color?
-
The value of indicatorColor.
If
null
BottomNavigationBarThemeData.selectedItemColor is used.
If BottomNavigationBarThemeData.unselectedItemColor is null,
then ThemeData.indicatorColor is used.
final
-
items
→ List<BottomNavigationBarItem>
-
Creates a bottom navigation bar with a indicator on top of the selected '
widget which is typically used as a
Scaffold's Scaffold.bottomNavigationBar argument.
final
-
key
→ Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
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
-
selectedIconTheme
→ IconThemeData?
-
The size, opacity, and color of the icon in the currently unselected
BottomNavigationBarItem.icons.
final
-
selectedLabelStyle
→ TextStyle?
-
The TextStyle of the BottomNavigationBarItem labels when they are
selected.
final
-
shadow
→ bool
-
Boolean value whether to show or hide the shadow.
final
-
shadowColor
→ Color?
-
The value of shadowColor.
If
null
, ThemeData.shadowColor is used.
final
-
showSelectedLabels
→ bool?
-
Whether the labels are shown for the unselected BottomNavigationBarItems.
final
-
showUnselectedLabels
→ bool?
-
Whether the labels are shown for the selected BottomNavigationBarItem.
final
-
unselectedIconTheme
→ IconThemeData?
-
The size, opacity, and color of the icon in the currently unselected
BottomNavigationBarItem.icons.
final
-
unselectedLabelStyle
→ TextStyle?
-
The TextStyle of the BottomNavigationBarItem labels when they aren't
selected.
final