I am trying to display gif in flutter.
I am using the code
Image(image : NetworkImage(message.image_url))
But it shows error:
Another exception was thrown: Exception: HTTP request failed, statusCode: 403, https://media.giphy.com/media/13AXYJh2jDt2IE/giphy.gif%20
Place your gif
in your images folder of your project and mention it in pubspec.yaml
file,just like you do for images.
Image.asset( "images/loading.gif", height: 125.0, width: 125.0, ),
This is what used in Flutter Gallery app to display .gif from web
Image.network('https://example.com/animated-image.gif')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With