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<FloaticaTab> tabs, required int selectedTab, EdgeInsetsGeometry? margin = const EdgeInsetsDirectional.symmetric(vertical: 16), double height = 60, double gap = 16, Color? backgroundColor, List<BoxShadow>? boxShadow, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(100)), FloaticaGlassEffect? glassEffect, FloaticaMenu? menu})
Creates a FloatyNavBar.
const

Properties

backgroundColor → Color?
The background color of the navigation bar.
final
borderRadius → BorderRadius
The border radius 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
glassEffect → FloaticaGlassEffect?
Glassmorphism effect configuration applied to all tabs.
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
An optional expandable menu that renders as a tab in 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
tabs → List<FloaticaTab>
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, 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