AbsoluteItem class abstract
An interface for widgets that support absolute positioning within a layout container.
AbsoluteItem defines the contract for widgets that can be positioned absolutely within their parent layout container. Absolute positioning removes the widget from the normal document flow and places it at specific coordinates relative to the parent's bounds.
This interface provides factory constructors for creating absolute positioned widgets, either with a direct child widget or with a builder function that receives layout information.
- Implemented types
- Implementers
Constructors
- AbsoluteItem.new({Key? key, int? paintOrder, SizeUnit? width, SizeUnit? height, SizeUnit? minWidth, SizeUnit? maxWidth, SizeUnit? minHeight, SizeUnit? maxHeight, PositionUnit? top, PositionUnit? left, PositionUnit? bottom, PositionUnit? right, double? aspectRatio, required Widget child})
-
Creates an absolutely positioned item with a direct child widget.
constfactory
- AbsoluteItem.builder({Key? key, int? paintOrder, SizeUnit? width, SizeUnit? height, SizeUnit? minWidth, SizeUnit? maxWidth, SizeUnit? minHeight, SizeUnit? maxHeight, PositionUnit? top, PositionUnit? left, PositionUnit? bottom, PositionUnit? right, double? aspectRatio, required Widget builder(BuildContext context, LayoutBox box)})
-
Creates an absolutely positioned item with a builder function.
constfactory
Properties
- aspectRatio → double?
-
The aspect ratio constraint (width/height) for this item.
no setterinherited
- bottom → PositionUnit?
-
The offset from the bottom edge of the parent container.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → SizeUnit?
-
The preferred height of this item.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- left → PositionUnit?
-
The offset from the left edge of the parent container.
no setterinherited
- maxHeight → SizeUnit?
-
The maximum height constraint for this item.
no setterinherited
- maxWidth → SizeUnit?
-
The maximum width constraint for this item.
no setterinherited
- minHeight → SizeUnit?
-
The minimum height constraint for this item.
no setterinherited
- minWidth → SizeUnit?
-
The minimum width constraint for this item.
no setterinherited
- paintOrder → int?
-
The paint order for this item, controlling drawing order when overlapping.
Lower values are painted first (behind), higher values are painted last (on top).
no setterinherited
- right → PositionUnit?
-
The offset from the right edge of the parent container.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- top → PositionUnit?
-
The offset from the top edge of the parent container.
no setterinherited
- width → SizeUnit?
-
The preferred width of this item.
no setterinherited
Methods
-
createElement(
) → Element -
Inflates this configuration to a concrete instance.
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, int wrapWidth = 65}) → 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