:::

6-9 中文直書

class VerticalChinese extends StatelessWidget {
  final TextStyle textStyle;
  final String text;

  VerticalChinese({@required this.text, @required this.textStyle, Key key})
      : assert(text != null),
        assert(textStyle != null),
        super(key: key);

  @override
  Widget build(BuildContext context) {
    List<Text> textList = text.split('').map((e)=>Text(e, style: textStyle,)).toList();
    print(textList);
    return Wrap(
      direction: Axis.vertical,
      children: textList,
    );
  }
}

 


:::

書籍目錄

展開 | 闔起

快速登入


http%3A%2F%2Fcampus-xoops.tn.edu.tw%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D1896%26tbsn%3D42

計數器

今天: 1307130713071307
昨天: 8625862586258625
總計: 8031914803191480319148031914803191480319148031914