gif 1.0.0 copy "gif: ^1.0.0" to clipboard
gif: ^1.0.0 copied to clipboard

outdated

Fork of flutter_gifimage that uses standard animation controllers

gif #

We should know that in order to achieve Gif in flutter, we can use Image, but we have no way to manipulate Gif, for example: change its speed, control it has been playing in a frame, in which frame range loop. These problems can be solved by this widget, it also help you contain gif cache, avoid load frame every time.

Usage(Simple) #

add in pubspec

     gif: ^1.0.0

simple usage

    AnimationController _gifController = AnimationController(vsync: this, duration: const Duration(seconds: 3));

    Gif(
         image: AssetImage("images/animate.gif"),
         controller: _gifController,
         placeholder: (context) => const Text('Loading...')
         onFetchCompleted: () {
              _gifController.reset();
              _gifController.forward();
         },
    ),

Thanks #

License #

MIT License

Copyright (c) 2019 Jpeng

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

46
likes
0
pub points
98%
popularity

Publisher

verified publisherpierluigizagaria.dev

Fork of flutter_gifimage that uses standard animation controllers

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on gif