LiquidTabAction class

A standalone action button displayed alongside the LiquidTabBar (such as a search, filter, or create button), styled with the exact same liquid glass / surface material as the bar.

Constructors

LiquidTabAction({required Widget icon, VoidCallback? onTap, bool selected = false, bool badge = false, String? badgeText, LiquidBadgeStyle? badgeStyle, String? tooltip, double size = 64.0, Color? color, Color? activeColor, bool isSearch = false, LiquidTabBarSearch? search})
const
LiquidTabAction.icon({required IconData icon, IconData? activeIcon, double iconSize = 23.0, VoidCallback? onTap, bool selected = false, bool badge = false, String? badgeText, LiquidBadgeStyle? badgeStyle, String? tooltip, double size = 64.0, Color? color, Color? activeColor})
A convenience constructor that wraps an IconData in an Icon widget.
LiquidTabAction.search({String? hintText, TextStyle? style, TextStyle? hintStyle, TextEditingController? controller, FocusNode? focusNode, ValueChanged<String>? onChanged, ValueChanged<String>? onSubmitted, VoidCallback? onClose, bool autofocus = true, IconData icon = Icons.search_rounded, double size = 64.0, String? tooltip = 'Search', VoidCallback? onTap, TapRegionCallback? onTapOutside, bool clearOnClose = false, Duration animationDuration = const Duration(milliseconds: 350)})
Creates a search action button that automatically morphs the bar into an expanded liquid-glass search input field when tapped.
factory

Properties

activeColor → Color?
final
badge → bool
final
badgeStyle → LiquidBadgeStyle?
final
badgeText → String?
final
color → Color?
final
hashCode → int
The hash code for this object.
no setterinherited
icon → Widget
final
isSearch → bool
final
onTap → VoidCallback?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
final
selected → bool
final
size → double
final
tooltip → String?
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