zoukankan      html  css  js  c++  java
  • flutter text 样式

    代码:

      body: Center(

               child: Container(

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

                 alignment: Alignment.topLeft,

                 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( 2.0,color: Colors.red),

                 ),

               )

             ),

     

     

    Text 样式

    textAlign 对齐样式

    maxLine 最大行

    overflow 结尾是省略号

    style : TextStyle(

    fontSize 字号

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

    decoration  下划线

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

    )

  • 相关阅读:
    总结mysql服务器查询慢原因与解决方法
    mysql查询今天,昨天,近7天,近30天,本月,上一月数据的方法
    Github 终于开始认真考虑开源项目许可证了
    mysql 外连接总结
    MYSQL--事务处理
    MySQL 索引详解
    MySQL数据库优化总结
    Delphi 2010 安装及调试
    Delphi 2010
    PostgreSQL 8.4.1
  • 原文地址:https://www.cnblogs.com/pp-pping/p/12157677.html
Copyright © 2011-2022 走看看