GlassTabBarExtraButton class

Configuration for the extra button in GlassBottomBar and GlassSearchableBottomBar.

The extra button is rendered as a GlassButton and typically used for primary actions like creating new content.

Constructors

GlassTabBarExtraButton({required Widget icon, required VoidCallback onTap, required String label, Color? iconColor, double size = 64, GlassExtraButtonPlacement placement = GlassExtraButtonPlacement.right, GlassExtraButtonPosition position = GlassExtraButtonPosition.beforeSearch, bool collapseOnSearchFocus = true})
Creates an extra button configuration.
const

Properties

collapseOnSearchFocus → bool
Whether this button collapses (hides + frees layout space) when the search field is focused (i.e. the keyboard is visible).
final
hashCode → int
The hash code for this object.
no setterinherited
icon → Widget
Icon widget displayed in the button.
final
iconColor → Color?
Color used for the button's icon.
final
label → String
Accessibility label for the button.
final
onTap → VoidCallback
Callback when the button is tapped.
final
placement → GlassExtraButtonPlacement
Where this button is placed in GlassBottomBar and GlassTabBar.bottom.
final
position → GlassExtraButtonPosition
Where this button is placed relative to the search pill in a GlassSearchableBottomBar.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → double
Width and height of the button.
final

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