Positioned class final
Places its child at the given offset (and optional size) inside a Stack.
width / height of null mean "use the child's intrinsic size on
that axis." Using this widget outside a Stack is supported but the
position is ignored — the child paints at the parent's normal layout
position.
- Inheritance
- Available extensions
Constructors
Properties
- child → Widget?
-
The widget below this widget in the tree.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int?
-
Child height in rows, or null to use its intrinsic height.
final
- key → Key?
-
finalinherited
- left → int
-
Horizontal offset from the stack's left edge, in cells.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- top → int
-
Vertical offset from the stack's top edge, in rows.
final
- width → int?
-
Child width in cells, or null to use its intrinsic width.
final
Methods
-
animate(
{Duration? duration, Curve? curve, Object? trigger, bool repeat = false}) → Animate -
Available on Widget, provided by the AnimateExtension extension
Starts an Animate chain over this widget.duration/curveapply to the whole chain. With notriggerit plays on mount; with a non-null trigger it rests on mount and replays whenever the token changes. -
createElement(
) → SingleChildRenderObjectElement -
Creates the Element that will mount this widget into the tree.
inherited
-
createRenderObject(
BuildContext context) → RenderObject -
Creates the render object backing this widget. Called once when the
element first mounts.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateRenderObject(
BuildContext context, covariant RenderPositioned renderObject) → void -
Applies any changes from a new widget instance to the existing
render object. Default is a no-op; subclasses override when the
widget carries layout/paint configuration.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited