text – 如何使用Flutter编写带有项目符号的段落?

前端之家收集整理的这篇文章主要介绍了text – 如何使用Flutter编写带有项目符号的段落?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
使用 HTML我可以将一个项目符号添加到这样的段落:

<ul>
   <li> example </li>
   <li> example </li>
   <li> example </li>
<ul>

如何在Flutter中编写项目符号表格?

new Text(''),

解决方法

我最好使用utf-code.对于列表,我认为更舒适将是这样的:

class DottedText extends Text {
  const DottedText(String data,{
    Key key,TextStyle style,TextAlign textAlign,TextDirection textDirection,Locale locale,bool softWrap,TextOverflow overflow,double textScaleFactor,int maxLines,String semanticsLabel,}) : super(
    '\u2022 $data',key: key,style: style,textAlign: textAlign,textDirection: textDirection,locale: locale,softWrap: softWrap,overflow: overflow,textScaleFactor: textScaleFactor,maxLines: maxLines,semanticsLabel: semanticsLabel,);
}

猜你在找的Flutter相关文章