RenderParagraphAdapter class

Adapts a RenderParagraph to support RenderTextMixin.

Mixed in types

Properties

hashCode int
The hash code for this object.
no setterinherited
height double
The vertical space required to paint the text.
no setteroverride
locale Locale?
Used by this paragraph's internal TextPainter to select a locale-specific font.
no setteroverride
maxLines int?
An optional maximum number of lines for the text to span, wrapping if necessary. If the text exceeds the given number of lines, it will be truncated according to overflow and softWrap.
no setteroverride
offset Offset
The offset of the text in the render box.
no setteroverride
renderBox RenderBox
The render box containing this text.
no setteroverride
rp RenderParagraph
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
softWrap bool
Whether the text should break at soft line breaks.
no setteroverride
strutStyle StrutStyle?
The strut style to use. Strut style defines the strut, which sets minimum vertical layout metrics.
no setteroverride
text InlineSpan
The text to display.
no setteroverride
textAlign TextAlign
How the text should be aligned horizontally.
no setteroverride
textDirection TextDirection
The directionality of the text.
no setteroverride
textHeightBehavior TextHeightBehavior?
Defines how to apply TextStyle.height over and under text.
no setteroverride
textScaleFactor double
Deprecated. Will be removed in a future version of Flutter. Use textScaler instead.
no setteroverride
textScaler TextScaler
The font scaling strategy to use when laying out and rendering the text.
no setteroverride
textSize Size
Returns the size of the text as laid out.
no setteroverride
textWidthBasis TextWidthBasis
Defines how to measure the width of the rendered text.
no setteroverride
width double
The horizontal space required to paint the text.
no setteroverride

Methods

getBoxesForSelection(TextSelection selection, {BoxHeightStyle boxHeightStyle = ui.BoxHeightStyle.tight, BoxWidthStyle boxWidthStyle = ui.BoxWidthStyle.tight}) List<TextBox>
Returns a list of rects that bound the given selection.
override
getFullHeightForCaret(TextPosition position) double?
Returns the strut bounded height of the glyph at the given position.
override
getOffsetForCaret(TextPosition position, Rect caretPrototype) Offset
Returns the offset at which to paint the caret.
override
getPositionForOffset(Offset offset) TextPosition
Returns the position within the text for the given pixel offset.
override
getWordBoundary(TextPosition position) TextRange
Returns the text range of the word at the given offset. Characters not part of a word, such as spaces, symbols, and punctuation, have word breaks on both sides. In such cases, this method will return a text range that contains the given text position.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(PaintingContext context, Offset offset) → void
Paints the text in the given context at the given offset.
override
toString() String
A string representation of this object.
inherited

Operators

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