TextDisplay extension

文本显示扩展方法

提供多种预定义文本样式的快捷生成方式

on

Methods

text({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 String, provided by the TextDisplay extension

从字符串生成文本控件 >>> 生成基础文本组件

textAction({Key? key, required BuildContext context, 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 String, provided by the TextDisplay extension

从字符串生成按钮文本控件 >>> 生成操作按钮文本组件

textBodyBold({Key? key, required BuildContext context, 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 String, provided by the TextDisplay extension

从字符串生成粗文本控件 >>> 生成加粗正文字体组件

textBodyNormal({Key? key, required BuildContext context, 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 String, provided by the TextDisplay extension

从字符串生成标准文本控件 >>> 生成常规正文字体组件

textSpan({TextStyle? style, Function onTap()?}) TextSpan

Available on String, provided by the TextDisplay extension

从字符串生成富文件组件 >>> 生成可交互的文本片段

textSubtitle({Key? key, required BuildContext context, 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 String, provided by the TextDisplay extension

从字符串生成子标题文本控件 >>> 生成子标题文本组件

textTitle({Key? key, required BuildContext context, 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 String, provided by the TextDisplay extension

从字符串生成标题文本控件 >>> 生成标题文本组件