FDialogMotion class
Motion-related properties for FDialog.
These fields are only used when FDialog.animation is non-null.
The actual animation duration is controlled by the route used to display the dialog, such as FDialogRoute. When using showFDialog, the duration can be customized via FDialogRouteStyle.motion.
- Mixed-in types
- Available extensions
Constructors
-
FDialogMotion.new({Curve expandCurve = Curves.easeOutCubic, Curve collapseCurve = Curves.easeInCubic, Curve fadeInCurve = Curves.linear, Curve fadeOutCurve = Curves.linear, Animatable<
double> scaleTween = const FImmutableTween(begin: 0.95, end: 1.0), Animatable<double> fadeTween = const FImmutableTween(begin: 0.0, end: 1.0), Duration insetDuration = const Duration(milliseconds: 100), Curve insetCurve = Curves.decelerate}) -
Creates a FDialogMotion.
const
Properties
- collapseCurve → Curve
-
The curve used for the dialog's collapse animation when exiting. Defaults to Curves.easeInCubic.
final
- expandCurve → Curve
-
The curve used for the dialog's expansion animation when entering. Defaults to Curves.easeOutCubic.
final
- fadeInCurve → Curve
-
The curve used for the dialog's fade-in animation when entering. Defaults to Curves.linear.
final
- fadeOutCurve → Curve
-
The curve used for the dialog's fade-out animation when exiting. Defaults to Curves.linear.
final
-
fadeTween
→ Animatable<
double> -
The tween used to animate the dialog's fade in and out. Defaults to
[0, 1]
.final - hashCode → int
-
The hash code for this object.
no setterinherited
- insetCurve → Curve
-
The curve to use for the animation shown when the system keyboard intrudes into the space that the dialog is
placed in. Defaults to Curves.decelerate.
final
- insetDuration → Duration
-
The duration of the animation to show when the system keyboard intrudes into the space that the dialog is placed in.
Defaults to 100ms.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scaleTween
→ Animatable<
double> -
The tween used to animate the dialog's scale in and out. Defaults to
[0.95, 1]
.final
Methods
-
call(
Object? _) → FDialogMotion -
Returns itself.
inherited
-
copyWith(
{Curve? expandCurve, Curve? collapseCurve, Curve? fadeInCurve, Curve? fadeOutCurve, Animatable< double> ? scaleTween, Animatable<double> ? fadeTween, Duration? insetDuration, Curve? insetCurve}) → FDialogMotion -
Available on FDialogMotion, provided by the $FDialogMotionTransformations extension
Returns a copy of this FDialogMotion with the given properties replaced. -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
lerp(
FDialogMotion other, double t) → FDialogMotion -
Available on FDialogMotion, provided by the $FDialogMotionTransformations extension
Linearly interpolate between this and another FDialogMotion using the given factort
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited