AbsoluteLayout class
Absolute layout properties for positioning elements When using absolute positioning, these properties work together to precisely position elements
Constructors
- AbsoluteLayout({dynamic left, dynamic top, dynamic right, dynamic bottom, dynamic translateX, dynamic translateY})
-
const
- AbsoluteLayout.centered()
-
Helper constructor for centering an element absolutely
This is a common pattern: position at 50% and translate back by 50%
const
- AbsoluteLayout.centeredHorizontally({dynamic top, dynamic bottom})
-
Helper constructor for centering horizontally only
const
- AbsoluteLayout.centeredVertically({dynamic left, dynamic right})
-
Helper constructor for centering vertically only
const
Properties
- bottom → dynamic
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isNotEmpty → bool
-
Check if any absolute layout properties are set
no setter
- left → dynamic
-
final
- right → dynamic
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- top → dynamic
-
final
- translateX → dynamic
-
final
- translateY → dynamic
-
final
Methods
-
copyWith(
{dynamic left, dynamic top, dynamic right, dynamic bottom, dynamic translateX, dynamic translateY}) → AbsoluteLayout - Create a copy with modified properties
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Convert to map for serialization
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited