RichTextBuilder class

Allows for building rich text using the known styles

Inheritance
Available Extensions

Constructors

RichTextBuilder(BuildContext context, {Color? lightColor, TextStyle? start})
RichTextBuilder.dark(BuildContext context, {Color? lightColor, TextStyle? start})
RichTextBuilder.inverted(BuildContext context, {Color? lightColor, TextStyle? start})
RichTextBuilder.ofTextTheme({required BuildContext context, required TextTheme textTheme, Color? lightColor, TextStyle? start})

Properties

children List<InlineSpan>
final
context BuildContext
final
hashCode int
The hash code for this object.
no setterinherited
italic RichTextBuilder
no setter
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lightStyle1 TextStyle
final
lightStyle2 TextStyle
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textTheme TextTheme
final

Methods

align(TextAlign align) RichTextBuilder
alignRight() RichTextBuilder
applyChild(String text, {TextStyle? baseStyle}) RichTextBuilder
body1(String text) RichTextBuilder
body2(String text) RichTextBuilder
body3(String text) RichTextBuilder
bold1(String text) RichTextBuilder
bold2(String text) RichTextBuilder
build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
buildText() Widget
call(RichTextBuild builder) Widget
caption(String text) RichTextBuilder
center() RichTextBuilder
color(Color color) RichTextBuilder
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
font(String font) RichTextBuilder
fontSize(double size) RichTextBuilder
h3(String text) RichTextBuilder
h3black(String text) RichTextBuilder
h4(String text) RichTextBuilder
h4black(String text) RichTextBuilder
h4bold(String text) RichTextBuilder
h4normal(String text) RichTextBuilder
height(double height) RichTextBuilder
icon(IconData data, {double? size, Color? color, double? offset}) RichTextBuilder
light1(String text) RichTextBuilder
light2(String text) RichTextBuilder
maxLines(int maxLines) RichTextBuilder
medium1(String text) RichTextBuilder
medium2(String text) RichTextBuilder
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
nowrap() RichTextBuilder
onTap(FutureBuildCallback callback, {bool isFixed = false}) RichTextBuilder
preserve() RichTextBuilder
singleLine() RichTextBuilder
softWrap() RichTextBuilder
space([int count = 1]) RichTextBuilder
style(TextStyle style) RichTextBuilder
text(String text, {TextStyle? style}) RichTextBuilder
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
truncate([TextOverflow? overflow]) RichTextBuilder
twoLines() RichTextBuilder
underline() RichTextBuilder
weight(FontWeight weight) RichTextBuilder
white() RichTextBuilder
widget(Widget widget) RichTextBuilder

Operators

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