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
bpad([int units = 2]) → Widget

Available on Widget, provided by the WidgetSpacingExt extension

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) → Widget

Available on Widget, provided by the WidgetSpacingExt extension

color(Color color) → RichTextBuilder
constrained({double? height, double? width}) → Widget

Available on Widget, provided by the WidgetSpacingExt extension

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
headerPad() → Widget

Available on Widget, provided by the WidgetSpacingExt extension

height(double height) → RichTextBuilder
hero(String text) → RichTextBuilder

Available on RichTextBuilder, provided by the RichTextBuilderTrippiExt extension

hero(String? heroTag) → Widget

Available on Widget, provided by the SunnyWidgetHeroExtensions extension

heroBold(String text) → RichTextBuilder

Available on RichTextBuilder, provided by the RichTextBuilderTrippiExt extension

hpad([int units = 2]) → Widget

Available on Widget, provided by the WidgetSpacingExt extension

icon(IconData data, {double? size, Color? color, double? offset}) → RichTextBuilder
light1(String text) → RichTextBuilder
light2(String text) → RichTextBuilder
listItemCard() → Widget

Available on Widget, provided by the WidgetSpacingExt extension

listItemPad() → Widget

Available on Widget, provided by the WidgetSpacingExt extension

listItemTallPad({Key? key}) → Widget

Available on Widget, provided by the WidgetSpacingExt extension

loose() → Widget

Available on Widget, provided by the WidgetSpacingExt extension

lpad([int units = 2]) → Widget

Available on Widget, provided by the WidgetSpacingExt extension

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
pad({int h = 2, int v = 1}) → Widget

Available on Widget, provided by the WidgetSpacingExt extension

preserve() → RichTextBuilder
rpad([int units = 2]) → Widget

Available on Widget, provided by the WidgetSpacingExt extension

sectionPad() → Widget

Available on Widget, provided by the WidgetSpacingExt extension

singleLine() → RichTextBuilder
sized({double? height, double? width}) → Widget

Available on Widget, provided by the WidgetSpacingExt extension

sliverBox() → Widget

Available on Widget, provided by the WidgetSpacingExt extension

sliverFill() → Widget

Available on Widget, provided by the WidgetSpacingExt extension

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, int wrapWidth = 65}) → 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
tpad([int units = 2]) → Widget

Available on Widget, provided by the WidgetSpacingExt extension

truncate([TextOverflow? overflow]) → RichTextBuilder
twoLines() → RichTextBuilder
underline() → RichTextBuilder
vpad([int units = 2]) → Widget

Available on Widget, provided by the WidgetSpacingExt extension

weight(FontWeight weight) → RichTextBuilder
white() → RichTextBuilder
widget(Widget widget) → RichTextBuilder

Operators

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