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

    )

  • 相关阅读:
    IE各版本CSS Hack(兼容性处理)语法速查表
    如何使用Three.js加载obj和mtl文件
    C# windows服务制作(包括安装及卸载)
    初识 Sql Server存储过程
    初始Bootstrap
    微软语言包实现汉字转拼音
    Autocomplete 自动补全(Webform实战篇)
    Npoi导出Excel 实战篇(Webform)
    Linq 知识回顾
    常用正则用法汇总
  • 原文地址:https://www.cnblogs.com/pp-pping/p/12157677.html
Copyright © 2011-2022 走看看