GlassTabBarTrailingButton class
The plain action button in GlassTabBar.minimizable's trailing slot —
the circular glass pill the searchable placement uses for search, carrying
an ordinary tap action instead. The generalized form of SwiftUI's
Tab(role: .search) trailing circle.
Not to be confused with GlassTabBarExtraButton, which is an additional
button rendered beside the pills. This one is the trailing pill: it
shares the bar's glass blend layer, morphs with the same springs, and
shrinks to GlassTabBar.minimizable's minimizedBarHeight alongside the
minimized tab circle. Like its native counterpart it is present in both
states; pass it conditionally (see GlassTabBar.minimizable) for
app-defined policies such as a button that exists only while minimized.
Constructors
- GlassTabBarTrailingButton({required Widget icon, required VoidCallback onTap, String? label, bool enabled = true})
-
Creates the trailing button.
const
-
Opens a GlassMenu pull-down when the trailing pill is tapped.
const
Properties
- enabled → bool
-
Whether the button is interactive. Defaults to true.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Widget
-
The glyph centered on the pill.
final
- isMenu → bool
-
Whether this button opens a menu rather than firing a tap callback.
no setter
- label → String?
-
Optional accessibility label for the button.
final
-
Controls where the menu expands relative to the trigger button.
final
-
Optional fixed height of the expanded menu panel in logical pixels.
final
-
When non-null, tapping this button opens a GlassMenu pull-down.
final
-
Width of the expanded menu panel in logical pixels. Defaults to 200.
final
- onTap → VoidCallback
-
Called when the pill is tapped.
final
- 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