Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display an animated picture in Flutter?

Tags:

flutter

dart

I want to display an animated picture, whatever its format, in Flutter. The fact is that currently there seems to be only one solution available, video_loader. This works only on full screen, but it doesn't fit my use case.

Any idea on how I could sort this out?

like image 841
Rémi Rousselet Avatar asked Oct 02 '17 03:10

Rémi Rousselet


People also ask

Can I use gif in flutter?

We should know that in order to achieve Gif in flutter, we can use Image, but we have no way to manipulate Gif, for example: change its speed, control it has been playing in a frame, in which frame range loop. These problems can be solved by this widget,it also help you contain gif cache,avoid load frame every time.

How do you use animations in flutter?

Install rive in your Flutter app To import Rive into the project, create a folder structure at the root of the project, such as assets/animation, and paste the . riv file there. You should also provide a reference to it in the pubspec. yaml file.


1 Answers

Now, Image widget Supports GIF. (April 18)

For Ex.

new Image(image: new AssetImage("assets/ajax-loader.gif"))

like image 115
UpaJah Avatar answered Sep 23 '22 23:09

UpaJah