:::

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

計數器

今天: 731731731
昨天: 3068306830683068
總計: 8077236807723680772368077236807723680772368077236