Text class

Text with Flutter-shaped styling and optional Arcane typography tokens.

Inheritance

Constructors

Text(String data, {FontSize? size, FontWeight? weight, TextColor? color, String? colorCustom, TextAlign? textAlign, LineHeight? lineHeight, LetterSpacing? letterSpacing, TextDecoration? decoration, TextTransform? transform, FontFamily? family, FontStyle? fontStyle, TextOverflow? overflow, WhiteSpace? whiteSpace, int? maxLines, bool selectable = true, TextStyle? style, ArcaneStyleData? cssStyle, bool? softWrap, String element = 'span', Key? key})
const
Text.body(String data, {TextColor? color = TextColor.muted, TextAlign? textAlign, TextStyle? style, ArcaneStyleData? cssStyle, bool? softWrap, Key? key})
const
Text.bodyLarge(String data, {TextColor? color = TextColor.muted, TextAlign? textAlign, TextStyle? style, ArcaneStyleData? cssStyle, bool? softWrap, Key? key})
const
Text.bodySmall(String data, {TextColor? color = TextColor.muted, TextAlign? textAlign, TextStyle? style, ArcaneStyleData? cssStyle, bool? softWrap, Key? key})
const
Text.caption(String data, {TextColor? color = TextColor.subtle, TextAlign? textAlign, TextStyle? style, ArcaneStyleData? cssStyle, bool? softWrap, Key? key})
const
Text.code(String data, {TextColor? color = TextColor.accent, TextAlign? textAlign, TextStyle? style, ArcaneStyleData? cssStyle, bool? softWrap, Key? key})
const
Text.heading(String data, {TextColor? color = TextColor.primary, TextAlign? textAlign, TextStyle? style, ArcaneStyleData? cssStyle, bool? softWrap, Key? key})
const
Text.heading2(String data, {TextColor? color = TextColor.primary, TextAlign? textAlign, TextStyle? style, ArcaneStyleData? cssStyle, bool? softWrap, Key? key})
const
Text.heading3(String data, {TextColor? color = TextColor.primary, TextAlign? textAlign, TextStyle? style, ArcaneStyleData? cssStyle, bool? softWrap, Key? key})
const
Text.label(String data, {TextColor? color = TextColor.primary, TextAlign? textAlign, TextStyle? style, ArcaneStyleData? cssStyle, bool? softWrap, Key? key})
const
const
Text.pageTitle(String data, {TextColor? color = TextColor.primary, TextAlign? textAlign, TextStyle? style, ArcaneStyleData? cssStyle, bool? softWrap, Key? key})
const
Text.sectionTitle(String data, {TextColor? color = TextColor.primary, TextAlign? textAlign, TextStyle? style, ArcaneStyleData? cssStyle, bool? softWrap, Key? key})
const
Text.subheading(String data, {TextColor? color = TextColor.secondary, TextAlign? textAlign, TextStyle? style, ArcaneStyleData? cssStyle, bool? softWrap, Key? key})
const
Text.truncated(String data, {FontSize? size, FontWeight? weight, TextColor? color, TextAlign? textAlign, TextStyle? style, ArcaneStyleData? cssStyle, bool? softWrap, Key? key})
const

Properties

color → TextColor?
final
colorCustom → String?
final
cssStyle → ArcaneStyleData?
final
data → String
final
decoration → TextDecoration?
final
element → String
final
family → FontFamily?
final
fontStyle → FontStyle?
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one component replaces another component in the tree.
finalinherited
letterSpacing → LetterSpacing?
final
lineHeight → LineHeight?
final
maxLines → int?
final
overflow → TextOverflow?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectable → bool
final
size → FontSize?
final
softWrap → bool?
final
style → TextStyle?
final
textAlign → TextAlign?
final
transform → TextTransform?
final
weight → FontWeight?
final
whiteSpace → WhiteSpace?
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this component.
override
createElement() → Element
Creates a StatelessElement to manage this component's location in the tree.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldRebuild(covariant Component newComponent) → bool
Implement this method to determine whether a rebuild can be skipped.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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