VooMultiSwitcherStyle class
Style configuration for the multi-switcher component.
This class allows customization of the card (closed state) and modal (open state) appearance, including colors, spacing, and animations.
Constructors
- VooMultiSwitcherStyle({BorderRadius? cardBorderRadius, Color? cardBackgroundColor, Color? cardHoverColor, EdgeInsets? cardPadding, BoxDecoration? cardDecoration, BorderRadius? modalBorderRadius, Color? modalBackgroundColor, double? modalMaxHeight, EdgeInsets? modalPadding, BoxDecoration? modalDecoration, TextStyle? sectionTitleStyle, Color? sectionDividerColor, EdgeInsets? sectionPadding, double avatarSize = 36, double compactAvatarSize = 32, double stackedUserAvatarSize = 24, double stackedOrgAvatarSize = 32, 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 in the expanded/full view
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 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
- sectionDividerColor → Color?
-
Color for dividers between sections
final
- sectionPadding → EdgeInsets?
-
Padding around section content
final
- sectionTitleStyle → TextStyle?
-
Text style for section titles (e.g., "Organizations", "Account")
final
- selectedColor → Color?
-
Background color for selected items
final
- stackedOrgAvatarSize → double
-
Size of the stacked org avatar in the card
final
- stackedUserAvatarSize → double
-
Size of the stacked user avatar in the card
final
- subtitleStyle → TextStyle?
-
Text style for item subtitles (org subtitle, user email)
final
- titleStyle → TextStyle?
-
Text style for item titles (org name, user name)
final
Methods
-
copyWith(
{BorderRadius? cardBorderRadius, Color? cardBackgroundColor, Color? cardHoverColor, EdgeInsets? cardPadding, BoxDecoration? cardDecoration, BorderRadius? modalBorderRadius, Color? modalBackgroundColor, double? modalMaxHeight, EdgeInsets? modalPadding, BoxDecoration? modalDecoration, TextStyle? sectionTitleStyle, Color? sectionDividerColor, EdgeInsets? sectionPadding, double? avatarSize, double? compactAvatarSize, double? stackedUserAvatarSize, double? stackedOrgAvatarSize, TextStyle? titleStyle, TextStyle? subtitleStyle, Color? selectedColor, Color? hoverColor, EdgeInsets? itemPadding, BorderRadius? itemBorderRadius, Duration? animationDuration, Curve? animationCurve}) → VooMultiSwitcherStyle - 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