TextExtraLarge class
extra large font
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- BText
- BaseText
- TextExtraLarge
- Available extensions
Constructors
- TextExtraLarge(String? text, {Key? key, Color? color, int? maxLines, double? height, double? letterSpacing, double fontSize = 18, TextStyle? style, TextOverflow? overflow, TextAlign? textAlign, FontWeight? fontWeight = FontWeights.semiBold, String? fontFamily})
Properties
- background → Paint?
-
text的背景色
finalinherited
- backgroundColor → Color?
-
finalinherited
- color → Color?
-
字体颜色,注意: 如果有特殊的foreground,此值必须是null
finalinherited
- debugLabel → String?
-
只在调试的使用
finalinherited
- decoration → TextDecoration
-
text的划线
TextDecoration.none 没有 默认
TextDecoration.underline 下划线
TextDecoration.overline 上划线
TextDecoration.lineThrough 中间的线(删除线)
finalinherited
- decorationColor → Color?
-
decoration划线的颜色
finalinherited
- decorationStyle → TextDecorationStyle?
-
decoration划线的样式
TextDecorationStyle.solid实线
TextDecorationStyle.double 画两条线
TextDecorationStyle.dotted 点线(一个点一个点的)
TextDecorationStyle.dashed 虚线(一个长方形一个长方形的线)
TextDecorationStyle.wavy 正玄曲线
finalinherited
- decorationThickness → double?
-
finalinherited
- fontFamily → String?
-
finalinherited
-
fontFamilyFallback
→ List<
String> ? -
finalinherited
-
fontFeatures
→ List<
FontFeature> ? -
finalinherited
- fontSize → double?
-
字体大小 默认的是 14
finalinherited
- fontStyle → FontStyle?
-
FontStyle.normal正常 FontStyle.italic斜体
finalinherited
- fontWeight → FontWeight?
-
字体的粗细程度 FontWeight.w100 -- FontWeight.w900 . 默认是FontWeight.w400,
finalinherited
- foreground → Paint?
-
text的前景色,与 color 不能同时设置
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
文本的高度 主要用于TextSpan 来设置不同的高度
finalinherited
- inherit → bool
-
TextStyle 以下是字体样式
默认样式会继承层级最为接近的 DefaultTextStyle,为true 表示继承,false 表示完全重写
finalinherited
- isRich → bool
-
finalinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- letterSpacing → double?
-
单个字母或者汉字的距离,默认是1.0,负数可以拉近距离
finalinherited
- locale → Locale?
-
Locale,当相同的Unicode字符可以根据不同的地区以不同的方式呈现时,用于选择字体
finalinherited
- maxLines → int?
-
int 设置文字的最大展示行数
finalinherited
- overflow → TextOverflow?
-
TextOverflow,内容溢出时的处理方式
finalinherited
- package → String?
-
finalinherited
- recognizer → GestureRecognizer?
-
text手势
finalinherited
-
recognizers
→ List<
GestureRecognizer?> -
texts内手势
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectionColor → Color?
-
The color to use when painting the selection.
finalinherited
- semanticsLabel → String?
-
text语义 - 语义描述标签,相当于此text的别名
finalinherited
-
semanticsLabels
→ List<
String> -
texts内语义 - 语义描述标签,相当于此text的别名
finalinherited
-
shadows
→ List<
Shadow> ? -
将在text下方绘制的阴影列表
finalinherited
- softWrap → bool?
-
bool 文本是否应在软换行时断行
finalinherited
- strutStyle → StrutStyle?
-
StrutStyle,影响Text在垂直方向上的布局
finalinherited
- style → TextStyle?
-
使劲此参数 以下单独字体样式无效
finalinherited
-
styles
→ List<
TextStyle> -
texts内样式
finalinherited
- text → String
-
finalinherited
- textAlign → TextAlign?
-
TextAlign,内容对齐方式
finalinherited
- textBaseline → TextBaseline?
-
TextBaseline.ideographic用来对齐表意文字的水平线
TextBaseline.alphabetic 以标准的字母顺序为基线
finalinherited
- textDirection → TextDirection?
-
TextDirection,内容的走向方式
finalinherited
- textHeightBehavior → TextHeightBehavior?
-
finalinherited
-
texts
→ List<
String> -
排在第一个text后面
finalinherited
- textScaleFactor → double?
-
double 设置文字的放大缩小,例如,fontSize=10,this.textScaleFactor=2.0,最终得到的文字大小为10*2.0
finalinherited
- textScaler → TextScaler
-
finalinherited
- textWidthBasis → TextWidthBasis?
-
TextWidthBasis 测量一行或多行文本宽度
finalinherited
- wordSpacing → double?
-
单词之间添加的空间间隔,负数可以拉近距离
finalinherited
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
inherited
-
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