animated_bottom_navigation_bars/animated_text_bottom_bar
library
Classes
-
AnimatedTextBottomBar
-
AnimatedTextBottomBar animated bottom navigation bar with animated text
children : list of bottom navigation bar items which consists of text and (icon or image)
text
: the title of the item
icon
: icon of the item
image
: image of the item
onBarTap : function performed when a particular child item is pressed
animatedTextDuration : duration of animated text (default value: Duration(milliseconds: 250))
animatedTextCurve : curve of animated text (default value: Curves.easeInOut)
textStyle : styling of animated text
margin : margin of animated bottom navigation bar (default value: EdgeInsets.zero)
padding : padding for children of animated bottom navigation bar (default value: EdgeInsets.symmetric(vertical: 8.0))
borderRadius : border radius of animated bottom navigation bar (default value: BorderRadius.zero)
selectedItemColor : color of image or icon when the item is selected
unselectedItemColor : color of image or icon when the item is not selected
selectedItemBorderRadius : borderRadius of item when the item is selected (default value = BorderRadius.all(Radius.circular(30)))
-
BottomBarItem
-
BottomBarItem is used as the child widget of animated text bottom bar given to it's children property
text : the text to be animated (it will be shown only when the item is selected
image : image shown when the item is selected or unselected
iconData : icon shown when the item is selected or unselected
only image or iconData can be given, not both
assert when neither image nor
icon
is given