WidgetTransitionEffects class
Class for setting up the incoming or outgoing transition effects
Constructors
- WidgetTransitionEffects({Offset? offset, double? opacity, double? scale, Offset? blur, double? rotation, Curve? curve, Offset? skew, Duration? duration, Duration? delay, TransitionAnimationSettingsBuilder? builder})
- Default constructor with the ability to specify and values available)
- WidgetTransitionEffects.incomingOffsetThenScale({Duration? duration, Duration? delay})
- Move up into standard position and scale
- WidgetTransitionEffects.incomingOffsetThenScaleAndStep({Duration? duration, Duration? delay})
- Move up slightly above standard position and scale, then jump down to standard location
- WidgetTransitionEffects.incomingScaleDown({Offset? offset, double? opacity, Offset? blur, double? rotation, Curve? curve, Offset? skew, Duration? delay, Duration? duration})
- Default scale for reducing scale from 3x down to the original size
- WidgetTransitionEffects.incomingScaleUp({Offset? offset, double? opacity, Offset? blur, double? rotation, Curve? curve, Offset? skew, Duration? delay, Duration? duration})
- Default scale for increasing scale from 0x size to 1x size
- WidgetTransitionEffects.incomingSlideInFromBottom({double? opacity, double? rotation, Offset? skew, Duration? delay, double? scale, Curve? curve, Offset? blur, Duration? duration})
- Slide widget in from the bottom by 150 offset
- WidgetTransitionEffects.incomingSlideInFromLeft({double? opacity, double? rotation, Offset? skew, Duration? delay, double? scale, Curve? curve, Offset? blur, Duration? duration})
- Slide widget in from the left by 150 offset
- WidgetTransitionEffects.incomingSlideInFromRight({double? opacity, double? rotation, Offset? skew, Duration? delay, double? scale, Curve? curve, Offset? blur, Duration? duration})
- Slide widget in from the right by 150 offset
- WidgetTransitionEffects.incomingSlideInFromTop({double? opacity, double? rotation, Offset? skew, Duration? delay, double? scale, Curve? curve, Offset? blur, Duration? duration})
- Slide widget in from the top by 150 offset
- WidgetTransitionEffects.outgoingOffsetThenScale({Duration? duration, Duration? delay})
- Move down and scale
- WidgetTransitionEffects.outgoingScaleDown({Offset? offset, double? opacity, Offset? blur, double? rotation, Curve? curve, Offset? skew, Duration? delay, Duration? duration})
- Scale down the text to 0 scale when outgoing
- WidgetTransitionEffects.outgoingScaleUp({Offset? offset, double? opacity, Offset? blur, double? rotation, Curve? curve, Offset? skew, Duration? delay, Duration? duration})
- Scale up the text to 3x scale when outgoing
- WidgetTransitionEffects.outgoingSlideOutToBottom({double? opacity, double? rotation, Offset? skew, Duration? delay, double? scale, Curve? curve, Offset? blur, Duration? duration})
- Slide widget out to the bottom by 150 offset
- WidgetTransitionEffects.outgoingSlideOutToLeft({double? opacity, double? rotation, Offset? skew, Duration? delay, double? scale, Curve? curve, Offset? blur, Duration? duration})
- Slide widget out to the left by 150 offset
- WidgetTransitionEffects.outgoingSlideOutToRight({double? opacity, double? rotation, Offset? skew, Duration? delay, double? scale, Curve? curve, Offset? blur, Duration? duration})
- Slide widget out to the right by 150 offset
- WidgetTransitionEffects.outgoingSlideOutToTop({double? opacity, double? rotation, Offset? skew, Duration? delay, double? scale, Curve? curve, Offset? blur, Duration? duration})
- Slide widget out to the top by 150 offset
- WidgetTransitionEffects.withStyle({Offset? offset, double? opacity, double? scale, Offset? blur, double? rotation, Curve? curve, Offset? skew, Duration? duration, Duration? delay, TransitionAnimationSettingsBuilder? builder, required WidgetTransitionEffectStyle style})
- Widget transition effect constructor where a style is passed in
Properties
- blur → Offset?
-
Offset Blur, the amount of blur on the X and Y axis e.g. Offset(2, 5) would be a blur of 2 on the X axis
and 5 on the Y axis, note that this effect can be quite performance intensive, so try to limit the amount it's used
final
- builder ↔ TransitionAnimationSettingsBuilder?
-
TransitionAnimationSettingsBuilder The builder allows you to create your own custom combinations of the above properties for maximum flexibility,
returns a TransitionAnimationSettingsBuilder see the samples.dart in the examples project for an example of using the builder
getter/setter pair
- curve → Curve?
-
Curve A curve for the animation tween the play
final
- delay → Duration?
-
Duration a delay before playing the transition effect
final
- duration → Duration?
-
Duration the duration that the transition effect will play for
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- offset → Offset?
-
Offset set up the offset from the position that the widget would normally render, e.g. Offset(50, 20) would render 50 pixels to the right and 20 below the normal location
Offset(-50, -20) would render 50 pixels to the left and 20 above the normal location
final
- opacity → double?
-
double an opacity range from 0..1
final
- rotation → double?
-
double The rotation in radians, so math.pi/0.5 will rotate a full circle, math.pi/6 will rotate a small amount
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale → double?
-
double The scale proportion compared to the widgets normal size, the default scale is 1.25x the normal size, use smaller numbers such as 0.5 to decrease the size and values larger
then one to increase the size
final
- skew → Offset?
-
Offset Skew, the amount of skew on the X and Y axis e.g. Offset(0.2, 0.5) would be a skew of 0.2 on the X axis and 0.5 on the Y axis
final
- style → WidgetTransitionEffectStyle
-
WidgetTransitionEffectStyle style for the potential for more complex animation timings
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
Static Properties
- defaultDuration ↔ Duration
-
getter/setter pair