flutter_animated 0.0.4 copy "flutter_animated: ^0.0.4" to clipboard
flutter_animated: ^0.0.4 copied to clipboard

Dart 1 only

Animated gif/apng support in flutter.

flutter_animated #

Animated images (GIF/APNG/WebP) support in flutter.

The plugin is under construction.

It lacks of basic features, and has got a number of serious issues.

USAGE #

require it #

in pubspec.yaml:

dependencies:
  flutter:
    sdk: flutter
  flutter_animated: any

basic usage #

// import
import 'flutter_animated/animated_gif.dart';

// fetch a gif
final Uint8List imgBytes = await http.readBytes('https://some.site/some.gif');

// generate a Widget for the gif
final Widget gifWidget = new AnimatedGif.memory(imgBytes);

NOTES #

Currently the only format being supported is gif and the only constructor is .memory.

AnimatedGif inherits from Image and StatefulWidget. This may change in the future though.

The performance is way not ideal for now. The good news is, it shows the first frame while decoding.

TODO #

0
likes
30
pub points
25%
popularity

Publisher

unverified uploader

Animated gif/apng support in flutter.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter, image

More

Packages that depend on flutter_animated