FloatingNavigationBar class

Inheritance

Constructors

FloatingNavigationBar({Key? key, required List<FloatingNavigationItem> items, required int selectedIndex, required dynamic onTap(int index), double bottomMargin = 15, double elevation = 5, EdgeInsets padding = const EdgeInsets.only(right: 14, left: 14, top: 10, bottom: 2), Duration duration = const Duration(milliseconds: 300), Curve? curves, BorderRadius? borderRadius, Color? backgroundColor})

Properties

backgroundColor Color?
You can change the navigationbar color, but default color follows at the 'ThemeData.ColorScheme.SurfaceColor'
getter/setter pair
borderRadius BorderRadius?
Decide how much flexion you want to give to the corner.
getter/setter pair
bottomMargin double
A double that determines how far it is from the bottom
getter/setter pair
curves Curve?
The Curve of item movement
getter/setter pair
duration Duration
Set up how fast movement of Cursor
getter/setter pair
elevation double
Determines how much evocation effect you want to add.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
items List<FloatingNavigationItem>
It is items what you want to add
getter/setter pair
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onTap ↔ dynamic Function(int index)
You can take what is current index when you tap navigation item
getter/setter pair
padding EdgeInsets
Decide the padding you want to put inside of NavigationBar
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedIndex int
getter/setter pair

Methods

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