VooContextSwitcherStyle class

Style configuration for the context switcher component.

This class allows customization of the card (closed state) and modal (open state) appearance, including colors, spacing, and animations.

Constructors

VooContextSwitcherStyle({BorderRadius? cardBorderRadius, Color? cardBackgroundColor, Color? cardHoverColor, EdgeInsets? cardPadding, BoxDecoration? cardDecoration, BorderRadius? modalBorderRadius, Color? modalBackgroundColor, double? modalMaxHeight, EdgeInsets? modalPadding, BoxDecoration? modalDecoration, double avatarSize = 32, double compactAvatarSize = 28, TextStyle? titleStyle, TextStyle? subtitleStyle, Color? selectedColor, Color? hoverColor, EdgeInsets? itemPadding, BorderRadius? itemBorderRadius, Duration? animationDuration, Curve? animationCurve})
const

Properties

animationCurve → Curve?
Curve for the modal animation
final
animationDuration → Duration?
Duration of the modal slide animation
final
avatarSize → double
Size of avatars/icons in the list
final
cardBackgroundColor → Color?
Background color of the card
final
cardBorderRadius → BorderRadius?
Border radius of the card
final
cardDecoration → BoxDecoration?
Custom decoration for the card (overrides other card properties)
final
cardHoverColor → Color?
Background color when hovering over the card
final
cardPadding → EdgeInsets?
Padding inside the card
final
compactAvatarSize → double
Size of avatars/icons in compact mode
final
hashCode → int
The hash code for this object.
no setterinherited
hoverColor → Color?
Background color when hovering over items
final
itemBorderRadius → BorderRadius?
Border radius for list items
final
itemPadding → EdgeInsets?
Padding inside list items
final
modalBackgroundColor → Color?
Background color of the modal
final
modalBorderRadius → BorderRadius?
Border radius of the modal
final
modalDecoration → BoxDecoration?
Custom decoration for the modal (overrides other modal properties)
final
modalMaxHeight → double?
Maximum height of the modal
final
modalPadding → EdgeInsets?
Padding inside the modal
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedColor → Color?
Background color for selected items
final
subtitleStyle → TextStyle?
Text style for item subtitles
final
titleStyle → TextStyle?
Text style for item names
final

Methods

copyWith({BorderRadius? cardBorderRadius, Color? cardBackgroundColor, Color? cardHoverColor, EdgeInsets? cardPadding, BoxDecoration? cardDecoration, BorderRadius? modalBorderRadius, Color? modalBackgroundColor, double? modalMaxHeight, EdgeInsets? modalPadding, BoxDecoration? modalDecoration, double? avatarSize, double? compactAvatarSize, TextStyle? titleStyle, TextStyle? subtitleStyle, Color? selectedColor, Color? hoverColor, EdgeInsets? itemPadding, BorderRadius? itemBorderRadius, Duration? animationDuration, Curve? animationCurve}) → VooContextSwitcherStyle
Creates a copy with the given fields replaced
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

Constants

defaultAnimationCurve → const Curve
Default animation curve for the modal (slight overshoot for bouncy feel)
defaultAnimationDuration → const Duration
Default animation duration for the modal
defaultModalMaxHeight → const double
Default maximum height for the modal
defaultSlideDistance → const double
Default slide distance for the modal animation