gif_ani 0.0.2 copy "gif_ani: ^0.0.2" to clipboard
gif_ani: ^0.0.2 copied to clipboard

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();
9
likes
20
pub points
48%
popularity

Publisher

unverified uploader

a flutter plugin to control gif animation.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on gif_ani