美文网首页
flutter text

flutter text

作者: 萍水相逢_程序员 | 来源:发表于2018-11-16 09:44 被阅读0次

    //String data 显示的文本
    //TextStyle style 样式
    //TextAlign textAligin 对齐
    //TextDirection textDirection;
    //Locale locale;
    // final bool softWrap; 是否换行
    //final TextOverflow overflow; 文本过长后 怎么显示
    // final double textScaleFactor; //字体缩放比率
    // final int maxLines; 最多显示多少行
    // final String semanticsLabel;

     const Text(this.data, {
        Key key,
        this.style,
        this.textAlign,
        this.textDirection,
        this.locale,
        this.softWrap,
        this.overflow,
        this.textScaleFactor,
        this.maxLines,
        this.semanticsLabel,
      }) : assert(data != null),
           textSpan = null,
           super(key: key);
    
    
    
      const Text.rich(this.textSpan, {
        Key key,
        this.style,
        this.textAlign,
        this.textDirection,
        this.locale,
        this.softWrap,
        this.overflow,
        this.textScaleFactor,
        this.maxLines,
        this.semanticsLabel,
      }): assert(textSpan != null),
          data = null,
          super(key: key);
    

    相关文章

      网友评论

          本文标题:flutter text

          本文链接:https://www.haomeiwen.com/subject/zxbefqtx.html