gif_ani 0.0.2
gif_ani: ^0.0.2

a flutter plugin to control gif animation.

gif_ani #

a flutter plugin to control gif animation

The example screen shot

Usage #

GifController is subclass of AnimationController. GifAnimation is just used like Image.

import 'package:gif_ani/gif_ani.dart';
GifController _animationCtrl = new GifController(vsync: this,duration: new Duration(milliseconds: 1200),frameNum: 32);
Widget ret = new GifAnimation(
    image: new AssetImage("like_anim.gif"),
    animationCtrl: _animationCtrl,
);

then you can control the gif animation by _animationCtrl:

///run the anim from start
_animationCtrl.runAni();

///set the Image with specified frame
_animationCtrl.setFrame(10);

///or you can use other action as a AnimationController
_animationCtrl.repeat();
_animationCtrl.reverse();
_animationCtrl.reset();
7
likes
60
pub points
76%
popularity

a flutter plugin to control gif animation.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

1451784145@qq.com

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on gif_ani