AnimatedNotchBottomBar class

Class to generate the NotchBottomBar

Inheritance

Constructors

AnimatedNotchBottomBar({Key? key, required NotchBottomBarController notchBottomBarController, required List<BottomBarItem> bottomBarItems, required ValueChanged<int> onTap, required double kIconSize, Color color = Colors.white, TextStyle? itemLabelStyle, double? shadowElevation, bool showShadow = true, bool showLabel = true, required double kBottomRadius, Shader? notchShader, bool showBlurBottomBar = false, double blurOpacity = 0.5, double blurFilterX = 5.0, double blurFilterY = 10.0, Color notchColor = Colors.white, int durationInMilliSeconds = 300, double bottomBarWidth = 500, bool removeMargins = false, double bottomBarHeight = 62.0, double elevation = 5.0, bool showBottomRadius = true, bool showTopRadius = true, Gradient? notchGradient = null, int? maxLine, TextOverflow? textOverflow, TextAlign? textAlign, TextDirection? textDirection, double topMargin = 10.0, double circleMargin = 8.0})
const

Properties

blurFilterX double
Filter X
final
blurFilterY double
Filter Y
final
blurOpacity double
Opacity
final
bottomBarHeight double
bottom bar height can be modify
final
bottomBarItems List<BottomBarItem>
List of items of bottom bar
final
bottomBarWidth double
bottom bar width for web and desktop apps (It should be greater then 500 otherwise it will take media query width)
final
circleMargin double
set margin between notch and circle
final
color Color
Color of bottom bar
final
durationInMilliSeconds int
Duration in milliseconds for animation
final
elevation double
elevation
final
hashCode int
The hash code for this object.
no setterinherited
itemLabelStyle TextStyle?
TextStyle to show bottom text
final
kBottomRadius double
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
kIconSize double
final
maxLine int?
set the maxLine of item label
final
notchBottomBarController NotchBottomBarController
Controller for animation
final
notchColor Color
Color of bottom bar
final
notchGradient Gradient?
add any gradient color to the notch
final
notchShader Shader?
final
onTap ValueChanged<int>
Function called when an item was tapped
final
removeMargins bool
Hide side and bottom margins of bottom navigation bar
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowElevation double?
final
showBlurBottomBar bool
Boolean to show blur effect
final
showBottomRadius bool
set bottom radius
final
showLabel bool
Boolean to show bottom text
final
showShadow bool
Boolean to show shadow
final
showTopRadius bool
set top radius
final
textAlign TextAlign?
textAlign to align the label text
final
textDirection TextDirection?
set the textDirection of item label
final
textOverflow TextOverflow?
to handle the overflow of the item label
final
topMargin double
set top margin
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _AnimatedNotchBottomBarState
Creates the mutable state for this widget at a given location in the tree.
override
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