SeniorText class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- SeniorText
Constructors
- SeniorText(String content, {Key? key, bool emphasis = false, Color? color, Color? darkColor, TextStyle? style, TextProperties? textProperties, required Typographies typography})
- Creates a text component.
- SeniorText.body(String content, {bool? emphasis, Key? key, Color? color, Color? darkColor, TextStyle? style, TextProperties? textProperties})
-
Create a text with body font.
The
content
is required.factory - SeniorText.bodyBold(String content, {bool? emphasis, Key? key, Color? color, Color? darkColor, TextStyle? style, TextProperties? textProperties})
-
Create a text with bodyBold font.
The
content
is required.factory - SeniorText.cta(String content, {bool? emphasis, Key? key, Color? color, Color? darkColor, TextStyle? style, TextProperties? textProperties})
-
Create a text with cta font.
The
content
is required.factory - SeniorText.h1(String content, {bool? emphasis, Key? key, Color? color, Color? darkColor, TextStyle? style, TextProperties? textProperties})
-
Create a text with h1 font.
The
content
is required.factory - SeniorText.h2(String content, {bool? emphasis, Key? key, Color? color, Color? darkColor, TextStyle? style, TextProperties? textProperties})
-
Create a text with h2 font.
The
content
is required.factory - SeniorText.h3(String content, {bool? emphasis, Key? key, Color? color, Color? darkColor, TextStyle? style, TextProperties? textProperties})
-
Create a text with h3 font.
The
content
is required.factory - SeniorText.h4(String content, {bool? emphasis, Key? key, Color? color, Color? darkColor, TextStyle? style, TextProperties? textProperties})
-
Create a text with h4 font.
The
content
is required.factory - SeniorText.label(String content, {bool? emphasis, Key? key, Color? color, Color? darkColor, TextStyle? style, TextProperties? textProperties})
-
Create a text with label font.
The
content
is required.factory - SeniorText.labelBold(String content, {bool? emphasis, Key? key, Color? color, Color? darkColor, TextStyle? style, TextProperties? textProperties})
-
Create a text with labelBold font.
The
content
is required.factory - SeniorText.small(String content, {bool? emphasis, Key? key, Color? color, Color? darkColor, TextStyle? style, TextProperties? textProperties})
-
Create a text with small font.
The
content
is required.factory - SeniorText.smallBold(String content, {bool? emphasis, Key? key, Color? color, Color? darkColor, TextStyle? style, TextProperties? textProperties})
-
Create a text with smallBold font.
The
content
is required.factory - SeniorText.smallLink(String content, {bool? emphasis, Key? key, Color? color, Color? darkColor, TextStyle? style, TextProperties? textProperties})
-
Create a text with smallLink font.
The
content
is required.factory
Properties
- color → Color?
-
A custom color for the light theme.
final
- content → String
-
The text to be displayed.
final
- darkColor → Color?
-
A custom color for the dark theme.
final
- emphasis → bool
-
Whether the font will be in an emphasis state.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → TextStyle?
-
The style of the text that will be displayed.
final
- textProperties → TextProperties?
-
The text properties.
Allows to configure:
TextProperties.maxLines 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.
TextProperties.overflow How visual overflow should be handled.
TextProperties.selectionColor The color to use when painting the selection.
TextProperties.semanticsLabel An alternative semantics label for this text.
TextProperties.softWrap Whether the text should break at soft line breaks.
TextProperties.strutStyle The strut style to use. Strut style defines the strut, which sets minimum vertical layout metrics.
TextProperties.textAlign How the text should be aligned horizontally.
TextProperties.textDirection The directionality of the text.
final
- typography → Typographies
-
Which font will be rendered.
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