-
bold()
→ Text
-
Available on Text,
provided by the TextX extension
粗体
-
color(Color color)
→ Text
-
Available on Text,
provided by the TextX extension
-
colorInt(int color)
→ Text
-
Available on Text,
provided by the TextX extension
-
copyWith({String? data, Key? key, TextStyle? style, StrutStyle? strutStyle, TextAlign? textAlign, TextDirection? textDirection, Locale? locale, bool? softWrap, TextOverflow? overflow, double? textScaleFactor, int? maxLines, String? semanticsLabel, TextWidthBasis? textWidthBasis, TextHeightBehavior? textHeightBehavior})
→ Text
-
Available on Text,
provided by the TextX extension
todo 手机号中间四位省略为*号,或类似场景。正则?
truncationMode leading tail middle
todo 艺术字效果 边框、渐变……
foreground paint
-
fontFamily(String family)
→ Text
-
Available on Text,
provided by the TextX extension
字体
配置中先注册family
-
fontSize(double size)
→ Text
-
Available on Text,
provided by the TextX extension
-
fontWeight(FontWeight? weight)
→ Text
-
Available on Text,
provided by the TextX extension
字体粗细、正斜等
-
italic()
→ Text
-
Available on Text,
provided by the TextX extension
斜体
-
letterSpacing(double spacing)
→ Text
-
Available on Text,
provided by the TextX extension
字母间距,可为负数
-
lineLimit(int num, {TextOverflow? overflow = TextOverflow.ellipsis})
→ Text
-
Available on Text,
provided by the TextX extension
-
lineSpacing(double spacing)
→ Text
-
Available on Text,
provided by the TextX extension
行间距,倍数
-
overLine({bool active = true, Color? color})
→ Text
-
Available on Text,
provided by the TextX extension
上划线
-
singleLine({TextOverflow? overflow = TextOverflow.ellipsis})
→ Text
-
Available on Text,
provided by the TextX extension
-
strikethrough({bool active = true, Color? color})
→ Text
-
Available on Text,
provided by the TextX extension
删除线
-
textAlignment(TextAlign align)
→ Text
-
Available on Text,
provided by the TextX extension
-
underLine({bool active = true, Color? color})
→ Text
-
Available on Text,
provided by the TextX extension
下划线
-
wordSpacing(double spacing)
→ Text
-
Available on Text,
provided by the TextX extension
单词间距,可为负数