简体   繁体   English

Flutter 动画,Flare VS GIF

[英]Flutter animations, Flare VS GIF

I found that we can make amazing animations with Flare.我发现我们可以用 Flare 制作令人惊叹的动画。 but can't we do the same with using gifs files?但是我们不能用 gifs 文件做同样的事情吗?

What's the difference between Flare animations and using gif files in a Flutter app? Flare 动画和在 Flutter 应用程序中使用 gif 文件有什么区别?

I dont use rive but I think the answer is in the possibilities.我不使用 rive,但我认为答案在于可能性。 That is那是

dynamic, interactive, & animated experiences, with gif it would be possible but it would be a bit hectic, like handling which gif to show when something happens would be problematic.动态、交互式和动画体验,使用 gif 是可能的,但它会有点忙,比如在发生某些事情时处理显示哪个 gif 是有问题的。 Suppose you have two animation A and B, what if you want to mix it?假设你有两个animation A和B,如果要混用怎么办? and do A and B together, then you would probably have to make another seperate gif for that.并一起做A和B,那么你可能不得不为此制作另一个单独的gif。 But for rive you mix the two animations with a few lines of code ( check this page for an example ) And not to say, rive has vector graphics ( meaning you can infinitely zoom without loss of resolution), whereas gif is raster graphics ( meaning you cannot infinitely zoom ).但是对于 rive,您将两个动画与几行代码混合在一起(查看此页面以获取示例)并不是说,rive 具有矢量图形(意味着您可以无限缩放而不会损失分辨率),而 gif 是光栅图形(意味着你不能无限缩放)。

The advantages that rive has is mostly for complex animations. rive 的优势主要在于复杂的动画。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM