I am fetching this gif image from internet and using CachedNetworkImage to load image in my flutter application. This image is animating only once. I also tried with Image.network. How do I continue the animation infinitely?
Seems to me this gif is set to play only once. Try re-exporting it with loop animation instead.
In other words, it's a gif matter, not flutter matter.
Related
I am new to flutter. I am trying to show video in a carousel. I am able to show images but when it comes to video I'm stuck. I have searched everywhere but couldn't find any example.
If you know how to implement a photo carousel, it should be easy to make a video carousel. Just implement a video player using chewie package and just place the video widget instead of the image widget.
https://pub.dev/packages/chewie
As you have provided no code in your question. So, I do not know why you are stuck in video. Also, you can check the below question/ans:
Video Carousel slider for flutter
I want to animate a container(upcoming task container),when go back to home screen from tasks screen I tried using Animated container but not working any help???
Use the AnimatedContainer widget for this. This is the video explanation from Flutter Devs, about how to do it.
This is actually a request! I googled that video carousel slider repo or sample for flutter (mobile). But i couldn't find any example.
These are unanswered questions about it:
Carousal slider with video player getting memory leak error in flutter
Video Carousel slider for flutter
I need to show in active index of slider, animated yt video (gif thumbnails) instead a thumbnail image on carousel slider in Flutter mobile app. When i touched on video/gif, it'll replace page and play the video in new page. Unluckily, there's no video carousel slider for Flutter in Google.
Hope someone help me!
I did some complex 3d animations on blender and I want to play them on flutter. The problem is that when I export the animation into a video and I put it on my flutter app the transparent background is gone. I'm using video_player to play videos on flutter and the video extension I use is .webm because is the only one I know that can be readed on flutter and have a transparent background but the application puts a black background in the video.
The conclusion I get is that video player plugin is not the best idea to do it. So i've been searching about how flutter manage gifs and it's manage alpha channel perfectly because it can manage alpha channel on image. But the next problem is how to control the gif, for that I use gifimage plugin which works really well to reproduce an animation. Finally the last problem is to export from blender to a gif, blender can't export on gif format so you should export into a quicktime format with Qt animation codec and then convert it to gif. If for some reason the first frame of the gif stay as background of the gif you should edit the gif with photoshop for example and change in the timeline the first frame to not disappear to disappear.
Current player plugin uses ExoPlayer on Android. I found this issue on the repo.
I am looking for a way to make an image span the entire width of the screen(while in landscape mode) while making the height of the image scroll-able. The images I want to render are of resolution 800*12000. What is the correct way of doing this?
I am fairly new to Flutter and Dart so easy solution will be appreciated.
Thank you
I have tried using the Image.asset() constructor inside a ListView. While it works for some Images, it throws weird error for some(Edit: Flutter no longer throws an error after updating it to v1.5.4-hotfix.2 but it still doesn't load the images sometimes ). The app just freezes when I try to load some of these images. Sometimes the image is only loaded when the device is in landscape mode