AnimatedAlignPositioned class
For more info, see: https://pub.dartlang.org/packages/align_positioned
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ImplicitlyAnimatedWidget
- AnimatedAlignPositioned
Constructors
- AnimatedAlignPositioned({Key? key, Duration duration = const Duration(milliseconds: 300), Curve curve = Curves.easeInOut, Widget? child, Alignment? alignment, double? dx, double? dy, double? moveByChildWidth, double? moveByChildHeight, double? moveByContainerWidth, double? moveByContainerHeight, double? moveVerticallyByChildWidth, double? moveHorizontallyByChildHeight, double? moveVerticallyByContainerWidth, double? moveHorizontallyByContainerHeight, double? childWidth, double? childHeight, double? minChildWidth, double? minChildHeight, double? maxChildWidth, double? maxChildHeight, double? childWidthRatio, double? childHeightRatio, double? minChildWidthRatio, double? minChildHeightRatio, double? maxChildWidthRatio, double? maxChildHeightRatio, double? rotateDegrees, Matrix4Transform? matrix4Transform, Wins wins = Wins.min, Touch touch = Touch.inside})
-
const
Properties
- alignment → Alignment
-
final
- child → Widget?
-
final
- childHeight → double?
-
You may define preferred child sizes, in absolute terms, or relative to the container size.
If you define both, they will be added.
final
- childHeightRatio → double?
-
You may define preferred child sizes, in absolute terms, or relative to the container size.
If you define both, they will be added.
final
- childWidth → double?
-
You may define preferred child sizes, in absolute terms, or relative to the container size.
If you define both, they will be added.
final
- childWidthRatio → double?
-
You may define preferred child sizes, in absolute terms, or relative to the container size.
If you define both, they will be added.
final
- curve → Curve
-
The curve to apply when animating the parameters of this container.
finalinherited
- duration → Duration
-
The duration over which to animate the parameters of this container.
finalinherited
- dx → double
-
Position.
final
- dy → double
-
Position.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- matrix4Transform → Matrix4Transform?
-
Some transformation to apply to the child.
This uses Matrix4Transform instead of Matrix4, since it's easier to use.
However, you can still use Matrix4 directly with the constructor
Matrix4Transform.from(matrix4)
.final - maxChildHeight → double?
-
You can also define min and max values, both in absolute and relative terms.
If you define min sizes in both relative and absolute terms, both are applied.
If you define max sizes in both relative and absolute terms, both are applied.
final
- maxChildHeightRatio → double?
-
You can also define min and max values, both in absolute and relative terms.
If you define min sizes in both relative and absolute terms, both are applied.
If you define max sizes in both relative and absolute terms, both are applied.
final
- maxChildWidth → double?
-
You can also define min and max values, both in absolute and relative terms.
If you define min sizes in both relative and absolute terms, both are applied.
If you define max sizes in both relative and absolute terms, both are applied.
final
- maxChildWidthRatio → double?
-
You can also define min and max values, both in absolute and relative terms.
If you define min sizes in both relative and absolute terms, both are applied.
If you define max sizes in both relative and absolute terms, both are applied.
final
- minChildHeight → double?
-
You can also define min and max values, both in absolute and relative terms.
If you define min sizes in both relative and absolute terms, both are applied.
If you define max sizes in both relative and absolute terms, both are applied.
final
- minChildHeightRatio → double?
-
You can also define min and max values, both in absolute and relative terms.
If you define min sizes in both relative and absolute terms, both are applied.
If you define max sizes in both relative and absolute terms, both are applied.
final
- minChildWidth → double?
-
You can also define min and max values, both in absolute and relative terms.
If you define min sizes in both relative and absolute terms, both are applied.
If you define max sizes in both relative and absolute terms, both are applied.
final
- minChildWidthRatio → double?
-
You can also define min and max values, both in absolute and relative terms.
If you define min sizes in both relative and absolute terms, both are applied.
If you define max sizes in both relative and absolute terms, both are applied.
final
- moveByChildHeight → double
-
Position.
final
- moveByChildWidth → double
-
Position.
final
- moveByContainerHeight → double
-
Position.
final
- moveByContainerWidth → double
-
Position.
final
- moveHorizontallyByChildHeight → double
-
Position moving orthogonally.
final
- moveHorizontallyByContainerHeight → double
-
Position moving orthogonally.
final
- moveVerticallyByChildWidth → double
-
Position moving orthogonally.
final
- moveVerticallyByContainerWidth → double
-
Position moving orthogonally.
final
- onEnd → VoidCallback?
-
Called every time an animation completes.
finalinherited
- rotateDegrees → double?
-
The rotation, in degrees (1 turn is 360 degrees).
The position of the axis of the rotation (the "origin") depends on the
alignment
parameter and the parent. So, for example,Alignment.center
means the axis of rotation is at the center of the parent.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- touch → Touch
-
If
touch
isTouch.inside
, thenalignment
works just like the alignment for theAlign
widget, aligning the child inside of the container. However, iftouch
isTouch.outside
, then the alignment happens outside of the container.final - wins → Wins
-
If min/max sizes are incompatible, you may define which wins.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _AnimatedAlignPositionedState -
Creates the mutable state for this widget at a given location in the tree.
override
-
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.
override
-
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
Static Methods
-
expand(
{Key? key, Duration duration = const Duration(milliseconds: 300), Curve curve = Curves.easeInOut, Widget? child, Alignment? alignment, double? dx, double? dy, double? moveByChildWidth, double? moveByChildHeight, double? moveByContainerWidth, double? moveByContainerHeight, double? moveVerticallyByChildWidth, double? moveHorizontallyByChildHeight, double? moveVerticallyByContainerWidth, double? moveHorizontallyByContainerHeight, double? childWidth, double? childHeight, double? minChildWidth, double? minChildHeight, double? maxChildWidth, double? maxChildHeight, double? childWidthRatio, double? childHeightRatio, double? minChildWidthRatio, double? minChildHeightRatio, double? maxChildWidthRatio, double? maxChildHeightRatio, double? rotateDegrees, Matrix4Transform? matrix4Transform, Wins wins = Wins.min, Touch touch = Touch.inside}) → Positioned - Use this if you put an AnimatedAlignPositioned inside of a Stack. The AnimatedAlignPositioned will then expand and fix itself to the corners of the Stack. The Stack will size itself to their other non-positioned widgets, and then you can use the AnimatedAlignPositioned to position its child in relation to the Stack.