CaptionPosition class final
Where a caption sits on the canvas: an alignment plus a safeArea inset in logical pixels.
This is the explicit value type behind the Align.thirds.bottom
shorthand. Fluvie ships named factories (CaptionPosition.bottomThird,
CaptionPosition.topThird, CaptionPosition.center,
CaptionPosition.custom) rather than a generic alignment grammar, so a
caption reads as a position, not an offset. The safeArea keeps the text
clear of the canvas edge (and platform UI) by inset logical pixels.
Value-equal so a styled track caches stably across builds.
- Annotations
Constructors
- CaptionPosition.bottomThird()
-
The lower third of the canvas — the default caption placement.
const
- CaptionPosition.center()
-
Dead center, with no safe-area inset.
const
- CaptionPosition.custom(Alignment alignment, {double safeArea = 0})
-
An explicit
alignmentwith an optionalsafeAreainset.const - CaptionPosition.topThird()
-
The upper third of the canvas.
const
Properties
- alignment → Alignment
-
Where on the canvas the caption block aligns.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- safeArea → double
-
The inset (in logical pixels) kept clear between the caption block and the
nearest canvas edge along the alignment axis.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override