FloatyNavBar class

A customizable floating navigation bar that displays tabs and an action button.

The FloatyNavBar widget allows users to navigate between tabs while providing an action button that can perform a specific action related to the selected tab. It supports custom shapes, styles, and animations.

Inheritance

Constructors

FloatyNavBar({Key? key, required List<FloatyTab> tabs, required int selectedTab, EdgeInsetsGeometry? margin = const EdgeInsetsDirectional.symmetric(vertical: 16), double height = 60, double gap = 16, Color? backgroundColor, List<BoxShadow>? boxShadow, FloatyShape shape = const CircleShape()})
Creates a FloatyNavBar.
const

Properties

backgroundColor Color?
The background color of the navigation bar.
final
boxShadow List<BoxShadow>?
The shadow effect applied to the navigation bar.
final
gap double
The gap between the tab bar and the action button.
final
hashCode int
The hash code for this object.
no setterinherited
height double
The height of the navigation bar.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
margin EdgeInsetsGeometry?
The margin around the navigation bar.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedTab int
The index of the currently selected tab.
final
shape FloatyShape
The shape of the navigation bar.
final
tabs List<FloatyTab>
The list of tabs to be displayed in the navigation bar.
final

Methods

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