MagneticBlobTabBar class

A pill-style tab indicator that stretches like a magnetic blob between positions during a transition, then snaps back to a normal pill shape. Use when you want a playful, energetic feel — e.g. profile filters, story categories, app onboarding.

Inheritance

Constructors

MagneticBlobTabBar({Key? key, required List<String> tabs, required int selectedIndex, required ValueChanged<int> onChanged, bool enabled = true, double height = 48, Color activeLabelColor = Colors.white, Color inactiveLabelColor = const Color(0xFF6B7280), Color trackColor = const Color(0xFFF1F5F9), List<Color> blobGradient = const [Color(0xFF8B5CF6), Color(0xFFEC4899)], TextStyle? labelStyle, List<String>? semanticLabels, Duration duration = const Duration(milliseconds: 520), Curve curve = Curves.easeOutCubic, EdgeInsets padding = const EdgeInsets.all(4), FocusNode? focusNode, bool autofocus = false})
const

Properties

activeLabelColor → Color
final
autofocus → bool
final
blobGradient → List<Color>
final
curve → Curve
final
duration → Duration
final
enabled → bool
final
focusNode → FocusNode?
final
hashCode → int
The hash code for this object.
no setterinherited
height → double
final
inactiveLabelColor → Color
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
labelStyle → TextStyle?
final
onChanged → ValueChanged<int>
final
padding → EdgeInsets
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedIndex → int
final
semanticLabels → List<String>?
final
tabs → List<String>
final
trackColor → Color
final

Methods

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