SwipeTransition class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- SwipeTransition
Constructors
- SwipeTransition({Key? key, Axis axis = Axis.vertical, double axisAlignment = -1.0, required Widget child, Clip clip = Clip.antiAlias, Curve curve = Curves.ease, Duration duration = const Duration(milliseconds: 200), Curve? reverseCurve, Duration? reverseDuration, required bool visible})
-
It is a type of transition very similar to SizeTransition.
The SwipeTransition fixes the problem that arises in the SlideTransition since
always hides the elements on the screen and not on the parent widget,
that is, if you performed the effect inside a 100x100 container the child widget
of the SwipeTransition would pop out of the container and be overexposed on top of its other widgets.
const
Properties
- axis → Axis
-
Axis.horizontal if
sizeFactor
modifies the width, otherwise Axis.vertical.final - axisAlignment → double
-
Describes how to align the child along the axis that
sizeFactor
is modifying.final - child → Widget
-
It is the child that will be affected by the SwipeTransition
final
- clip → Clip
-
final
- curve → Curve
-
It is the curve that the SwipeTransition performs
final
- duration → Duration
-
Is the time it takes to make the transition.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- reverseCurve → Curve?
-
It is the curve that the SwipeTransition performs
final
- reverseDuration → Duration?
-
Is the time it takes to make the transition.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- visible → bool
-
If true, it will show the widget in its position.
If false, it will hide the widget.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
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
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited