hyper_effects library

Classes

AlignEffect
An effect that aligns a Widget by a given alignment.
AllSymbolsTapeStrategy
Constructs symbol tapes that contain all the characters that are contained between two strings in alphabetical order.
AnimatedEffect
A widget that animates the effects applied to it's child.
BlurEffect
An effect that applies a blur effect to its child.
ClipEffect
An Effect that applies an clip to a Widget.
ColorFilterEffect
An Effect that applies an opacity to a Widget.
ColorFilterMatrix
A set of predefined color filter matrices.
ConsistentSymbolTapeStrategy
Constructs symbol tapes that contain all the characters that are contained between two strings in alphabetical order up to the given distance.
Effect
An Effect that can be applied to a Widget. This is the base class for all effects.
EffectQuery
An inherited widget that provides the animation value to it's descendants.
EffectWidget
A widget that applies given Effect to a Widget. This widget is hardly used directly. Instead, use the extension methods provided by the effects to apply them to a Widget.
OpacityEffect
An Effect that applies an opacity to a Widget.
PointerTransition
A widget that applies a set of effects to its child based on the current position of the pointer device.
PointerTransitionEvent
Represents the pointer event for PointerTransition.
PostFrame
A widget that doesn't render first frame. This is useful for widgets that need to be rendered after the first frame
ResetAllAnimationsEffect
Provides the functionality to reset all animations in its child widget tree. This is particularly useful when you want to reset a series of chained animations to their initial state.
RollingText
A StatefulWidget that provides a rolling text effect.
RollingTextEffect
Rolls each character with a tape of characters individually to form the newText from the oldText.
RotationEffect
An Effect that applies a rotation to a Widget.
ScaleEffect
An Effect that applies a scale to a Widget.
ScrollTransition
A widget that applies a set of effects to its child based on the current phase and position of the scroll position of the parent scrollable widget.
ScrollTransitionEvent
Represents the scroll event for ScrollTransition.
ShakeEffect
A Effect that applies a shaking motion to a Widget.
SkewEffect
An Effect that applies a skew to a Widget.
SymbolTapeStrategy
Defines the strategy to create the tape of character symbols to interpolate to and from.
TransformEffect
An Effect that applies a transform to a Widget.
TranslateEffect
An effect that translates a Widget by a given offset.

Enums

AnimationTriggerType
Represents the different ways that can trigger an animation.
ScrollPhase
Defines the state of an object in the context of its associated scroll view. This mainly indicates whether the object is visible in the scroll view or is either leaving or entering the scroll view.
TapeSlideDirection
Determines the direction in which each tape of characters will slide in the RollingTextEffect.

Extensions

AlignEffectExt on Widget
Provides a extension method to apply an AlignEffect to a Widget.
AnimatedEffectExt on Widget
Provides extension methods for Widget to animate it's appearance.
BlurEffectExt on Widget
Provides extension methods for Widget to apply blur effects.
BuildContextExtension on BuildContext
Extension methods for BuildContext.
ClipEffectExtension on Widget
Provides a extension method to apply an ClipEffect to a Widget.
ColorFilterEffectExtension on Widget
Provides a extension method to apply an ColorFilterEffect to a Widget.
OpacityEffectExtension on Widget
Provides a extension method to apply an OpacityEffect to a Widget.
PointerTransitionExt on Widget
Provides extension methods for Widget to apply scroll transition effects.
RotationEffectExt on Widget
Provides a extension method to apply a RotationEffect to a Widget.
ScaleEffectExt on Widget
Provides a extension method to apply a ScaleEffect to a Widget.
ScrollPositionExt on ScrollPosition
Extension methods for ScrollPosition.
ScrollTransitionExt on Widget
Provides extension methods for Widget to apply scroll transition effects.
ShakeEffectExt on Widget
Provides a extension method to apply a ShakeEffect to a Widget.
SkewEffectExt on Widget
Provides a extension method to apply a SkewEffect to a Widget.
TextEffectExt on Text
Provides a extension method to apply a RollingTextEffect to a Widget.
TransformEffectExt on Widget
Provides a extension method to apply a TransformEffect to a Widget.
TranslateEffectExt on Widget
Provides a extension method to apply a TranslateEffect to a Widget.

Constants

appleEaseIn → const Cubic
A cubic Bézier curve that replicates Apple's easeIn curve. Ref: https://developer.apple.com/documentation/quartzcore/camediatimingfunctionname/1521971-easein
appleEaseInOut → const Cubic
A cubic Bézier curve that replicates Apple's easeInOut curve. Ref: https://developer.apple.com/documentation/quartzcore/camediatimingfunctionname/1522173-easeineaseout
appleEaseOut → const Cubic
A cubic Bézier curve that replicates Apple's easeOut curve. Ref: https://developer.apple.com/documentation/quartzcore/camediatimingfunctionname/1522178-easeout

Typedefs

BooleanCallback = bool Function()
A callback that returns whether an animation should be allowed to follow through with its animation or be skipped completely, even when explicitly triggered.
PointerTransitionBuilder = Widget Function(BuildContext context, Widget widget, PointerTransitionEvent event)
A function that builds a widget based on the current position of the pointer device.
ScrollTransitionBuilder = Widget Function(BuildContext context, Widget widget, ScrollTransitionEvent event)
A function that builds a widget based on the current phase of the scroll animation.