morphing_button library
A Flutter package providing morphing button widgets with smooth directional arrow animations that respond to cursor position.
Classes
- GlassPillButton
- Variant 1: Glassmorphism Pill
- HamburgerMorphPainter
- Morphs between a hamburger menu icon and an expand icon.
- HoverButtonBase
- Abstract base widget for hover-aware buttons.
-
HoverButtonBaseState<
T extends HoverButtonBase> - Abstract base state for HoverButtonBase.
- ModeToggleButton
- A general-purpose split/collapse toggle button.
- MorphingArrowPainter
- CustomPainter that draws the morphing directional arrow.
- MorphingButtonBase
- Abstract base widget for morphing buttons.
-
MorphingButtonBaseState<
T extends MorphingButtonBase> - Abstract base state for morphing buttons. Subclasses implement buildButton to define their visual style.
- MorphingButtonTheme
- MorphingButtonThemeData
- Abstract base widget for navigation toggle buttons.
- Abstract base state for NavToggleBase widgets.
- A concrete navigation toggle button with 3-mode rendering.
- OutlineFillButton
- Variant 2: Bordered Outline with Color Fill
- SidebarEdgeIndicatorPainter
- Paints a small rounded pill at the right edge, driven by presence.
- SoftShadowButton
- Variant 3: Soft Shadow Rounded
- TabIndicatorPainter
- Paints a bottom tab indicator line that scales by presence.
- UnderlineMinimalButton
- Variant 4: Underline Minimal
Enums
- ModeToggleState
- The visual state of a ModeToggleButton.
- Display mode for navigation toggle buttons.
Mixins
-
HoverTracker<
T extends StatefulWidget> - Mixin that provides hover-tracking with smooth animation.