Home > database >  How do I load gif from json format in flutter?
How do I load gif from json format in flutter?

Time:11-17

enter link description here

Above link is json file of gif

How do I load this gif via json file.

I tried in Iamage.asset but it didn't work

CodePudding user response:

Try using the Lottie package available at a pub.dev

CodePudding user response:

By using converter you can get your lottie json.

And in flutter add this lottie in your project and that gif which you get the json from above link then paste in assets folder and the access it like

Lottie.asset('assets/gif.json'),
  • Related