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

    代码:

    child: Container(
    child: new Image.network(
    'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1578312966654&di=09a975b6c05a1447fc6f8aeae463cf41&imgtype=0&src=http%3A%2F%2Fp2.qhimgs4.com%2Ft0128307802c64fd817.jpg',
    // fit: BoxFit.fill,
    // color: Colors.greenAccent,
    // colorBlendMode: BlendMode.modulate,
    repeat: ImageRepeat.repeatX,
    ),
    500.0,
    height: 300.0,
    color: Colors.lightBlue,
     
    )
     
    总结
     

    Image 图片

    child :new Image.network{

    http://xxxxx’

    fit:BoxFit.scaleDown//默认样式-图片原大小

            BoxFit.fill //图片填充容器大小,会拉伸

    BoxFit.cover //图片填充容器大小,会裁剪

    //给图片添加层颜色

    color:Colors.green

    colorBrendMode:BlendMode.modulate,//图层混合和 颜色

    repeat:ImageRepeat.repeatX//对X轴做图片复制

    }

  • 相关阅读:
    php 数组
    条件语句if else ,switch ,while ,do.while
    if..else 判断中的 Boolean()转换
    wampserver 集成环境
    sublime text 安装及使用
    vue tab切换
    SVG 基础
    gitosis管理员的密钥丢失解决办法
    源码安装MySQL
    Xshell远程登录
  • 原文地址:https://www.cnblogs.com/pp-pping/p/12157683.html
Copyright © 2011-2022 走看看