# gif_ani **Repository Path**: mirrors_donglua/gif_ani ## Basic Information - **Project Name**: gif_ani - **Description**: a flutter plugin to control gif animation - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-07-01 - **Last Updated**: 2026-05-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # gif_ani a flutter plugin to control gif animation ![The example screen shot](https://github.com/hyz1992/gif_ani/blob/master/gif/screenshot.gif) ## Usage GifController is subclass of AnimationController. GifAnimation is just used like Image. ```Dart import 'package:gif_ani/gif_ani.dart'; GifController _animationCtrl = new GifController(vsync: this,duration: new Duration(milliseconds: 1200),frameCount: 32); Widget ret = new GifAnimation( image: new AssetImage("like_anim.gif"), animationCtrl: _animationCtrl, ); ``` then you can control the gif animation by _animationCtrl: ```Dart ///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(); ```