EllipticText class

Draw curved text along the perimiter of an ellipse.

Inheritance

Constructors

EllipticText({required String text, Key? key, TextStyle style = const TextStyle(color: Colors.red), EllipticText_TextAlignment textAlignment = EllipticText_TextAlignment.centre, EllipticText_CentreAlignment? centreAlignment, EllipticText_PerimiterAlignment perimiterAlignment = EllipticText_PerimiterAlignment.top, double offset = 0.0, double stretchFactor = 1.0, EllipticText_FitType fitType = EllipticText_FitType.noFit, double fitFactor = 0.5, double debugStrokeWidth = 0.0})
const

Properties

centreAlignment EllipticText_CentreAlignment?
Draw text top-side away or bottom-side away from centre.
final
debugStrokeWidth double
Set to 1.0 to see an outline of the ellipse the text is drawn around.
final
fitFactor double
A fitFactor of 1/2 would fit the text to half the perimiter of the ellipse, 1/4 to a quarter and 1 would completely wrap the text around the ellipse.
final
fitType EllipticText_FitType
How the text should be fitted along the perimiter.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
offset double
Where to draw text along perimiter relative to perimiterAlignment.
final
perimiterAlignment EllipticText_PerimiterAlignment
Where to draw text along perimiter.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stretchFactor double
Stretches the text by stretchFactor, e.g. 0.7 will squeeze the text to 70% its original width.
final
style TextStyle
Style to be applied to the text. Note that a few properties aren't supported such as decoration and wordSpacing.
final
text String
final
textAlignment EllipticText_TextAlignment
Align text to the left, right or centre.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
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}) 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