CNTabBarSearchStyle class
Visual styling options for the search tab in CNTabBar.
Use this to customize colors, sizes, padding, and animations.
- Annotations
Constructors
- CNTabBarSearchStyle({double? iconSize, Color? iconColor, Color? activeIconColor, Color? searchBarBackgroundColor, Color? searchBarTextColor, Color? searchBarPlaceholderColor, Color? clearButtonColor, double? buttonSize, double? searchBarHeight, double? searchBarBorderRadius, EdgeInsets? searchBarPadding, EdgeInsets? contentPadding, double? spacing, Duration? animationDuration, bool showClearButton = true, CNSymbol? collapsedTabIcon})
-
Creates search tab styling configuration.
const
Properties
- activeIconColor → Color?
-
Color of the search icon when expanded/active.
final
- animationDuration → Duration?
-
Duration of expand/collapse animation.
final
-
Size of the collapsed search button (width and height).
final
- clearButtonColor → Color?
-
Color of the clear (X) button.
final
- collapsedTabIcon → CNSymbol?
-
Custom icon for the collapsed tab indicator (shown when search is active).
final
- contentPadding → EdgeInsets?
-
Padding around the entire search tab area.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- iconColor → Color?
-
Color of the search icon when collapsed/inactive.
final
- iconSize → double?
-
Size of the search icon in the collapsed button.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchBarBackgroundColor → Color?
-
Background color of the expanded search bar.
final
- searchBarBorderRadius → double?
-
Border radius of the search bar.
final
- searchBarHeight → double?
-
Height of the expanded search bar.
final
- searchBarPadding → EdgeInsets?
-
Internal padding of the search bar content.
final
- searchBarPlaceholderColor → Color?
-
Placeholder text color.
final
- searchBarTextColor → Color?
-
Text color inside the search bar.
final
- showClearButton → bool
-
Whether to show the clear button when text is entered.
final
- spacing → double?
-
Spacing between the collapsed tab indicator and search bar.
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.
override