TranslucentNavigationBar class

Inheritance

Constructors

TranslucentNavigationBar({Key? key, required List<TranslucentNavigationBarItem> items, Color selectedColor = Colors.black, Color unselectedColor = Colors.black26, required int selectedIndex, Color mainIconBackgroundColor = Colors.blue, Color mainIconColor = Colors.white, required dynamic onTap(int)?, dynamic onMainIconTap()?, double height = 75.0, double borderRadius = 40.0, double blur = 20.0, TranslucentNavigationBarItem? mainTranslucentNavigationBarItem, double verticalPadding = 25.0, double horizontalPadding = 20.0})

Properties

blur double
Blur extent of the appbar
final
borderRadius double
Border radius of the appbar
final
hashCode int
The hash code for this object.
no setterinherited
height double
Height of the appbar
final
horizontalPadding double
Padding on the left and right sides of AppBar
final
items List<TranslucentNavigationBarItem>
List of TranslucentNavigationBarItems
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mainIconBackgroundColor Color
Main icon background color in middle of appbar
final
mainIconColor Color
Main icon color in middle of appbar
final
mainTranslucentNavigationBarItem TranslucentNavigationBarItem?
Main icon of TranslucentNavigationBar
final
onMainIconTap → dynamic Function()?
Main icon function on tap
final
onTap → dynamic Function(int)?
Returns the index of the tab that was tapped.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedColor Color
The color of the icon when the item is selected.
final
selectedIndex int
The tab to display.
final
unselectedColor Color
The color of the icon when the item is unselected.
final
verticalPadding double
Padding on the top and bottom of AppBar
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, int wrapWidth = 65}) 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