代码:

  body: Center(

           child: Container(

             child: new Text('哈哈哈哈哈哈哈哈哈哈哈哈哈哈或哈哈哈哈哈哈哈',style: TextStyle(fontSize: 35)),

             alignment: Alignment.topLeft,

             width: 550.0,

             height: 400.0,

            //  color: Colors.lightBlue,

             padding: const EdgeInsets.fromLTRB(20.0, 30.0, 20.0, 0.0),

             margin: const EdgeInsets.all(10.0),

             decoration: new BoxDecoration(

               gradient: const LinearGradient(

                 colors: [Colors.lightBlue,Colors.green,Colors.purple],

               ),

               border: Border.all(width: 2.0,color: Colors.red),

             ),

           )

         ),

 

 

Text 样式

textAlign 对齐样式

maxLine 最大行

overflow 结尾是省略号

style : TextStyle(

fontSize 字号

color : Color.FromARGB(255,255,255,255) 字体颜色 

decoration  下划线

decorationStyle:TextDecorationStyle.solid 下划线样式—虚线,实线等

)