SearchableTabIndicator class
Draggable glass indicator for GlassSearchableBottomBar.
Uses identical spring physics and masking to GlassBottomBar's internal
_TabIndicator. When isSearchActive is true, it collapses to show only
the collapsedLogoBuilder and a tap dismisses search.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SearchableTabIndicator
Constructors
-
SearchableTabIndicator({required Widget childUnselected, required Widget selectedTabBuilder(BuildContext, double, Alignment), required int tabIndex, required int tabCount, required ValueChanged<
int> onTabChanged, required bool visible, required GlassQuality quality, required double barHeight, required double barBorderRadius, double? indicatorBorderRadius, required EdgeInsetsGeometry tabPadding, required double magnification, required double innerBlur, required MaskingQuality maskingQuality, required bool isSearchActive, required VoidCallback onDismissSearch, Color? indicatorColor, LiquidGlassSettings? indicatorSettings, double indicatorPinchStrength = 0.4, GlobalKey<State< ? backgroundKey, WidgetBuilder? collapsedLogoBuilder, EdgeInsetsGeometry indicatorExpansion = const EdgeInsets.symmetric(horizontal: 12, vertical: 8), Color? interactionGlowColor, double interactionGlowRadius = 1.5, double interactionGlowBlurRadius = 0, double interactionGlowSpreadRadius = 0, double interactionGlowOpacity = 1, required bool enableBackgroundAnimation, required double backgroundPressScale, bool platformViewBackdrop = false, Key? key})StatefulWidget> > -
const
Properties
-
backgroundKey
→ GlobalKey<
State< ?StatefulWidget> > -
final
- backgroundPressScale → double
-
final
- barBorderRadius → double
-
final
- barHeight → double
-
final
- childUnselected → Widget
-
final
- collapsedLogoBuilder → WidgetBuilder?
-
final
- enableBackgroundAnimation → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- indicatorBorderRadius → double?
-
final
- indicatorColor → Color?
-
final
- indicatorExpansion → EdgeInsetsGeometry
-
How far the jelly indicator's leading and trailing edges expand
past the tab boundary as the indicator translates. Higher values
give a more dramatic "puff" stretch; lower values produce a
tighter, more iOS-native feel. Defaults to
14to match the pre-existing visual.final - indicatorPinchStrength → double
-
Maximum concave lens pinch strength. Forwarded to AnimatedGlassIndicator.
final
- indicatorSettings → LiquidGlassSettings?
-
final
- innerBlur → double
-
final
- interactionGlowBlurRadius → double
-
final
- interactionGlowColor → Color?
-
final
- interactionGlowOpacity → double
-
final
- interactionGlowRadius → double
-
final
- interactionGlowSpreadRadius → double
-
final
- isSearchActive → bool
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- magnification → double
-
final
- maskingQuality → MaskingQuality
-
final
- onDismissSearch → VoidCallback
-
final
-
onTabChanged
→ ValueChanged<
int> -
final
- platformViewBackdrop → bool
-
When true (bar over an iOS PlatformView): the bar background renders via
live BackdropFilter, and the premium indicator refracts the bar's own icon
layer (capturable) instead of the PlatformView backdrop.
final
- quality → GlassQuality
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedTabBuilder → Widget Function(BuildContext, double, Alignment)
-
final
- tabCount → int
-
final
- tabIndex → int
-
final
- tabPadding → EdgeInsetsGeometry
-
final
- visible → bool
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< SearchableTabIndicator> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited