在 Flutter 中实现 Lottie 动画

问题描述 投票:0回答:1

我想使用Flutter代码实现这个Lottie动画并动态地改变其中的文本,有什么方法或包可以做到这一点吗?

动画:

https://lottiefiles.com/animations/lower-third-animation-UMOzlnEHi2

flutter dart animation
1个回答
0
投票
要更改 Lottie 图像的名称,您通常需要编辑与 Lottie 动画关联的 JSON 文件。

1.Download JSON File. 2.Open the JSON File: Open the JSON file in a text editor or a specialized JSON editor. 3.Search for the Layer Name: Use the search function in your text editor to find the name you want to change. 4.Edit the Name: Once your located the layer name in the JSON file, simply edit it to the desired new name. 5.Save the Changes. 6.Re-import the Lottie Animation to flutter project.
    
© www.soinside.com 2019 - 2024. All rights reserved.