LanguageSwitcherAnimationStyle class
Configures animations for LanguageSwitcher inline popup trigger and bottom modal list items.
Constructors
- LanguageSwitcherAnimationStyle({double triggerScale = 1.0, Duration triggerScaleDuration = const Duration(milliseconds: 150), Curve triggerScaleCurve = Curves.easeInOut, AnimationStyle? popupAnimationStyle, Duration popupContentFadeDuration = Duration.zero, double tapScale = 0.98, Duration tapScaleDuration = const Duration(milliseconds: 150), Curve tapScaleCurve = Curves.easeInOut, Duration transitionDuration = const Duration(milliseconds: 200), Curve transitionCurve = Curves.easeOutCubic, Curve checkmarkCurve = Curves.easeOutBack})
-
const
- LanguageSwitcherAnimationStyle.bouncy()
-
Playful, springy animations.
factory
- LanguageSwitcherAnimationStyle.fadeIn()
-
Smooth fade-in with gentle scale.
factory
- LanguageSwitcherAnimationStyle.none()
-
No animations.
const
- LanguageSwitcherAnimationStyle.subtle()
-
Subtle, refined animations.
factory
Properties
- checkmarkCurve → Curve
-
Curve for the checkmark scale animation in the bottom modal.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- popupAnimationStyle → AnimationStyle?
-
Flutter's built-in popup menu animation control. Null uses Flutter default.
final
- popupContentFadeDuration → Duration
-
Duration for fading in popup menu item content after the popup opens.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tapScale → double
-
Scale applied to list items on press in the bottom modal.
final
- tapScaleCurve → Curve
-
Curve of the list item tap scale animation.
final
- tapScaleDuration → Duration
-
Duration of the list item tap scale animation.
final
- transitionCurve → Curve
-
Curve for container transitions in the bottom modal.
final
- transitionDuration → Duration
-
Duration for container, opacity, and checkmark transitions in the bottom modal.
final
- triggerScale → double
-
Scale applied to the trigger button when the popup opens (1.0 = no scale).
final
- triggerScaleCurve → Curve
-
Curve of the trigger scale animation.
final
- triggerScaleDuration → Duration
-
Duration of the trigger scale animation.
final
Methods
-
copyWith(
{double? triggerScale, Duration? triggerScaleDuration, Curve? triggerScaleCurve, AnimationStyle? popupAnimationStyle, Duration? popupContentFadeDuration, double? tapScale, Duration? tapScaleDuration, Curve? tapScaleCurve, Duration? transitionDuration, Curve? transitionCurve, Curve? checkmarkCurve}) → LanguageSwitcherAnimationStyle - Create a copy with overridden properties.
-
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