Text ------widget树由两个widget:Center(及其子widget)和Text组成
作者:互联网
import 'package:flutter/material.dart'; void main() => runApp(new Center( child: new Text( 'Hello, world!', textDirection: TextDirection.ltr, textAlign: TextAlign.center, maxLines: 1, overflow: TextOverflow.ellipsis, style: TextStyle(fontSize: 80.0, color: Colors.yellow), )));
标签:树由,TextStyle,widget,Center,80.0,Text,new 来源: https://www.cnblogs.com/xiongwei/p/10769907.html