CircularTextLayout class

A circular text layout, ideal for the Halo device. Text is constrained within a circle inscribed in the defined width/height.

Inheritance

Constructors

CircularTextLayout({required int width, required int height, required int fontSize, double circleMargin = 15.0, String? fontFamily, TextAlign textAlign = ui.TextAlign.center})

Properties

centerX ↔ double
latefinal
centerY ↔ double
latefinal
circleMargin → double
final
fontFamily → String?
finalinherited
fontSize → int
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
height → int
finalinherited
radius ↔ double
latefinal
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startY → double
The starting Y coordinate for laying out text.
no setteroverride
textAlign → TextAlign
finalinherited
width → int
finalinherited

Methods

getLineLayout(double lineY, double lineHeight) → ({int width, int xOffset})?
Gets the layout parameters (width and x-offset) for a line at a specific Y position. Returns null if the line is outside the displayable area.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited