Skip to content

A Flutter package for playing GIFs with features like play, pause, and seek. Control your GIF playback easily in your app.

License

Notifications You must be signed in to change notification settings

meetleev/flutter_gif_player

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gif_player

Pub support

The GIF player Flutter package offers functionality for playing, pausing, and seeking within GIFs, accompanied by a progress bar for playback control. With this package, users can seamlessly enjoy GIF animations, controlling playback as desired by pausing, resuming, and jumping to specific points within the animation. The progress bar provides visual feedback on the current playback position, allowing users to track their progress and navigate through the GIF with ease.

Preview

Getting Started

Add the package to your pubspec.yaml:

dependencies:
  gif_player: <latest_version>

Features

  • Support play, pause, seek
  • Support loop play
  • Support progressbar or custom progressbar
  • support gif player event.

Usage

// init
GifPlayerController controller = GifPlayerController(
        backgroundColor: Colors.black,
        dataSource: GifPlayerDataSource.asset(assetGifUrl));

// build
GifPlayer(controller: controller, fit: BoxFit.fill),

About

A Flutter package for playing GIFs with features like play, pause, and seek. Control your GIF playback easily in your app.

Topics

Resources

License

Stars

Watchers

Forks