:::

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,
    );
  }
}

 


:::

書籍目錄

展開 | 闔起

快速登入


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

計數器

今天: 3764376437643764
昨天: 2489248924892489
總計: 8025746802574680257468025746802574680257468025746