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 下划线样式—虚线,实线等

    )

  • 相关阅读:
    如何启用apache的gzip压缩?
    Zend Framework配置Nginx的rewrite
    数据库差异比较工具
    心愿王泽 杨颖 乔媛 唐景莲
    在所有存储过程中查找一个关键字
    通用分页存储过程
    JavaScript开发工具 Aptana
    js如何控制select控件(下拉列表)
    Read and write flat file
    Extreme Programming
  • 原文地址:https://www.cnblogs.com/pp-pping/p/12157677.html
Copyright © 2011-2022 走看看