native_animated_image 0.3.2 copy "native_animated_image: ^0.3.2" to clipboard
native_animated_image: ^0.3.2 copied to clipboard

Native (Rust + system ImageIO/ImageDecoder) decoder for animated GIF / APNG / WebP / AVIF. Bypasses Flutter Skia multi-frame codec.

native_animated_image #

Native (Rust) decoder & renderer for animated GIF / APNG / WebP in Flutter.

Bypasses Flutter's built-in Skia multi_frame_codec to avoid long-standing upstream bugs:

Usage #

import 'package:native_animated_image/native_animated_image.dart';

// From bytes (e.g. via your own cache manager / network client)
Image(
  image: NativeAnimatedImageProvider.memory(gifBytes, tag: 'unique-key'),
)

// From a custom byte loader (recommended for production — bring your own
// HTTP client / cache layer)
Image(
  image: NativeAnimatedImageProvider.fromBytesProvider(
    loader: () async => myCacheManager.getBytes(url),
    tag: url,
  ),
)

Install #

dependencies:
  native_animated_image: ^0.1.0

flutter pub get will automatically pull the right platform plugin (native_animated_image_macos / _ios / _android / _windows / _linux) for your target.

Supported formats #

Format Status Notes
GIF Full disposal/transparency handling
APNG All blend & dispose ops
Animated WebP Lossy + lossless
Static PNG / WebP / JPEG (handled by Flutter built-in) Provider falls through to CachedNetworkImageProvider style flow

Platforms #

Platform Architecture Status
macOS arm64
iOS arm64 (device + simulator)
Android arm64-v8a / armeabi-v7a / x86_64 / x86
Windows x86_64
Linux x86_64
Web Not supported (Skia path on web works fine)

License #

MIT — see LICENSE.

1
likes
150
points
641
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Native (Rust + system ImageIO/ImageDecoder) decoder for animated GIF / APNG / WebP / AVIF. Bypasses Flutter Skia multi-frame codec.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

ffi, flutter, native_animated_image_android, native_animated_image_ios, native_animated_image_linux, native_animated_image_macos, native_animated_image_windows

More

Packages that depend on native_animated_image