FloatingNavbar class

Inheritance

Constructors

FloatingNavbar({Key? key, @required List<FloatingNavbarItem>? items, @required int? currentIndex, @required void onTap(int val)?, ItemBuilder? itemBuilder, Color? backgroundColor = Colors.black, Color? selectedBackgroundColor = Colors.white, Color? selectedItemColor = Colors.black, double? iconSize = 24.0, double? fontSize = 11.0, double? borderRadius = 8, double? itemBorderRadius = 8, Color? unselectedItemColor = Colors.white, EdgeInsetsGeometry? margin = const EdgeInsets.symmetric(horizontal: 8, vertical: 8), EdgeInsetsGeometry? padding = const EdgeInsets.only(bottom: 8, top: 8), double width = double.infinity, double? elevation = 0.0})

Properties

backgroundColor Color?
final
borderRadius double?
final
currentIndex int?
final
elevation double?
final
fontSize double?
final
hashCode int
The hash code for this object.
no setterinherited
iconSize double?
final
itemBorderRadius double?
final
itemBuilder ItemBuilder?
final
items List<FloatingNavbarItem>?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
margin EdgeInsetsGeometry?
final
onTap → (void Function(int val)?)
final
padding EdgeInsetsGeometry?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedBackgroundColor Color?
final
selectedItemColor Color?
final
unselectedItemColor Color?
final
width double
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _FloatingNavbarState
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