GlassBottomBarCollapseConfig class

Enables the bottom bar's collapse-to-extra-button interaction.

When provided to GlassBottomBar or GlassTabBar.bottom, an upward swipe collapses the tab pill toward a single point while keeping the extra button visible. A downward swipe expands it again, and tapping the collapsed bar can optionally expand it before the extra action fires.

Constructors

GlassBottomBarCollapseConfig({GlassBottomBarCollapseDirection direction = GlassBottomBarCollapseDirection.towardsExtraButton, bool expandOnTap = true, Duration animationDuration = const Duration(milliseconds: 280), double collapsedExtraButtonScale = 0.9})
Creates a collapse behavior configuration.
const

Properties

animationDuration Duration
Duration of the collapse/expand animation.
final
collapsedExtraButtonScale double
Scale applied to the extra button while collapsed.
final
direction GlassBottomBarCollapseDirection
Which physical edge the tab pill collapses toward.
final
expandOnTap bool
Whether tapping the collapsed bar expands it.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited