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

outdatedDart 1 only

Animated gif/apng support in flutter.

flutter_animated #

Animated images (gif/apng) support in flutter.

The plugin is under construction.

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

USAGE #

  1. require it in pubspec.yaml:
dependencies:
  flutter:
    sdk: flutter
  flutter_animated: any
  1. a demo:
// 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(imgBytes);

TODO #

  • it WILL FREEZE
  • BUG alpha composition
  • use the platform
    • android: android.graphics.Movie
  • show firstFrame while parsing
  • method to set speed/FPS
  • method to controll play/pause
  • method to set forward/reverse
  • support input more than UInt8List
    • asset path, url, etc.
  • support more formats like apng
0
likes
0
pub points
30%
popularity

Publisher

unverified uploader

Animated gif/apng support in flutter.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, image

More

Packages that depend on flutter_animated