【问题标题】:Flutter ListView base64 images are flashing when it displayed with Image.memoryFlutter ListView base64图像与Image.memory一起显示时闪烁
【发布时间】:2020-08-30 09:10:13
【问题描述】:

这是我的code

我也用 NotificationListener 实现了分页

【问题讨论】:

  • 请将相关代码放入问题本身,因为链接可以更改,这对我们来说更容易。

标签: listview flutter base64 flashing


【解决方案1】:

在渲染图像时添加gaplessPlayback: true 属性。它必须是这样的:

Image myImg = Image.memory(
      base64Decode(base64Image),
      height: 150,
      width: 180,
      fit: BoxFit.cover,
      gaplessPlayback: true, // add this
    );

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-07-30
    • 2011-07-04
    • 2023-04-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多