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), )));
Text ------widget树由两个widget:Center(及其子widget)和Text组成
猜你喜欢
转载自www.cnblogs.com/xiongwei/p/10769907.html
今日推荐
周排行