【问题标题】:Flutter Lottie: Works on Lottie player but not in FlutterFlutter Lottie:适用于 Lottie 播放器,但不适用于 Flutter
【发布时间】:2022-07-19 18:53:35
【问题描述】:

Lottie 动画在 lottie player 中工作得非常好,但在 Flutter Web 或 Flutter Android 中不起作用。 (尚未在 iOS 上测试)

动画:

https://lottiefiles.com/113275-sad-character

代码:

LottieBuilder.network("https://assets4.lottiefiles.com/packages/lf20_7gs6bvae.json",
                      controller: lottieController,)

这是它在 Android 或 Flutter Web 上的外观:

【问题讨论】:

  • 在 iOS 模拟器上也观察到同样的问题 :) 并且它也闪烁
  • 在flutter web上观察到同样的事情,我也下载了文件并用Lottie.asset渲染它,​​但它是同样的事情

标签: android flutter dart lottie bodymovin


【解决方案1】:

我就一个问题联系了 lottie 帮助部分,他们说不支持某些动画功能。

你可以在这里查看 https://prnt.sc/tSKXVZDgjBE5

https://lottiefiles.com/supported-features

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-01-21
  • 2021-04-14
  • 1970-01-01
  • 2020-08-13
  • 1970-01-01
  • 2022-10-23
相关资源
最近更新 更多