Package selection guidance compiled from public package information, community data, and project usage.
A Flutter widget that enables precise animation of image sequences with full control over playback, timing, and looping. It serves as a lightweight alternative to GIFs, allowing developers to create smooth animations using individual image frames. Ideal for custom animations where GIFs are too large or inflexible. The package supports all major platforms and offers intuitive APIs for starting, pausing, and resetting animations.
Use cases
Custom animated UI elements
Replacing large GIF files
Interactive app animations
Game character animations
Loading indicators with frame-by-frame effects
Key features
Full playback control
Support for any image format
Cross-platform compatibility
Configurable frame rate
Looping options
Easy integration with existing widgets
Suitable for
Developers seeking GIF alternatives
Apps requiring high-performance animations
Projects with strict file size constraints
Interactive UI components
Animations needing precise timing control
Considerations
Higher memory usage with many frames
Requires pre-processed image sequences
Not ideal for very long animations
Manual management of frame loading
Limited built-in effects compared to video formats
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
image_sequence_animator
A simple widget for animating a set of images with full custom controls as an alternative to using a GIF file.
If you have a GIF file you would like to use with this package, I recommend EZGIF to convert your GIF file to an image
sequence.
It is highly recommended to read the documentation and run the example project on a real device to fully understand and inspect the full range
of capabilities.
[isOnline] is added. If your [folderName] is an online path, this value should be set to true.
[waitUntilCacheIsComplete] is added. If you want the [ImageSequenceAnimator] to wait until the entire image sequence is cached, this value should be set
to true i. Otherwise, the [ImageSequenceAnimator] will invoke [onReadyToPlay] and start playing if [isAutoPlay] is set to true when it approximates that the
remaining caching can be completed without causing stutters. This value is only used if [isOnline] is set to true.
[cacheProgressIndicatorBuilder] is added. If you want to display a widget until the [ImageSequenceAnimator] is ready to be played, use this function.
Media
Watch on Youtube:
Description
This simple widget for animating a set of images (a.k.a an image sequence) with full custom controls as an alternative to using a GIF file.
GIF files are, as far as I know, not possible to control. With this package, you will have full control over your image sequence like controlling a
video. You can loop, boomerang, change the color, play, pause, stop, skip, rewind, restart and more.
How-to-Use
First, add your image sequence to your assets and update the "pubspec.yaml" accordingly.
Then create an ImageSequenceAnimator widget as shown in the example:
For a complete set of descriptions for all parameters and methods, see the documentation.
[isLooping] will override [isBoomerang] if both are set to true.
All [ImageSequenceProcessCallback] callbacks will return a reference to the created [ImageSequenceAnimator] state. You can save this instance for
further actions.
Use [ImageSequenceAnimatorState]'s [bool get isLooping], [bool get isBoomerang], [double get currentProgress], [double get totalProgress],
[double get currentTime] and [double get totalTime] methods to get the respective values.
Notes
I started using and learning Flutter only some weeks ago so this package might have some parts that don't make sense, that should be completely
different, that could be much better, etc. Please let me know! Nicely!