zoukankan      html  css  js  c++  java
  • 2021年3月2日

    时间:2个小时

    代码:300多行

    博客:1

    知识点:Image 小组件

    参考链接:https://www.jianshu.com/p/843bbc453620

    Image 作为支持展示多种图片格式的 Widget,提供了多种构造方法;

    Image() 用于从 ImageProvider 中获取图片资源;
    Image.asset() 用于从 AssetBundle 中获取工程目录图片资源;
    Image.network() 用于从 URL 中获取网络图片资源;
    Image.file() 用于从 File 中获取本地图片资源;
    Image.memory() 用于从 Uint8List 中获取内存图片资源

    const Image({
        Key key,
        @required this.image,       // 图片资源
        this.frameBuilder,          // 帧构造器
        this.loadingBuilder,        // 加载过程帧构造器
        this.errorBuilder,          // 失败状态帧构造器
        this.semanticLabel,
        this.excludeFromSemantics = false,
        this.width,                 // 图片宽
        this.height,                // 图片高
        this.color,                 // 图片颜色
        this.colorBlendMode,        // 混合方式
        this.fit,                   // 分布效果
        this.alignment = Alignment.center,      // 对齐方式
        this.repeat = ImageRepeat.noRepeat,     // 平铺效果
        this.centerSlice,
        this.matchTextDirection = false,
        this.gaplessPlayback = false,
        this.isAntiAlias = false,
        this.filterQuality = FilterQuality.low,
    })
  • 相关阅读:
    6.25作业
    博客园第一篇
    532. 数组中的K-diff数对
    echarts
    跨域问题
    数组中第三大的数 leetcode 414
    除自身以外数组的乘积leetcode 238
    xshell工具
    插入、删除和随机查询时间复杂度都为O(1) leetcode 381
    组合总和3 leetcode 216
  • 原文地址:https://www.cnblogs.com/j-y-s/p/14902307.html
Copyright © 2011-2022 走看看