The default Fyne image widgets only show the first frame of a gif image. This widget allows you to start and stop the animation through all the frames.

Code

gif, err := NewAnimatedGif(storage.NewFileURI("./testdata/gif/earth.gif"))
gif.Start()

Usage

You can use this directly from the source code using standard go imports:

go get fyne.io/x/fyne/widget@latest

Or you can download the code directly from git:

git clone https://github.com/fyne-io/fyne-x.git

Screenshots

The component is demonstrated in the following images: