Pakete, Repositories und App-Kategorien suchen

Cover von flutter_gif
Paketdetailsv0.0.4

flutter_gif

GIF-Bild-Widget hilft bei der Steuerung des GIF-Fortschritts, Geschwindigkeit und wiederholter Frames.

30-Tage-Downloads
669
Likes
56
Pub-Punkte
70

Paket installieren

flutter pub add flutter_gif

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

Das flutter_gif-Paket bietet ein Widget zum Anzeigen und Steuern von GIF-Animationen in Flutter-Anwendungen. Es ermöglicht eine fein abgestimmte Kontrolle über die GIF-Wiedergabe, einschließlich Fortschritt, Geschwindigkeit und Wiederholung von Bildern. Ideal für Apps, die dynamische, interaktive animierte Inhalte erfordern, unterstützt es eine reibungslose Darstellung und effizienten Speicherverbrauch. Das Paket ist leichtgewichtig und einfach zu integrieren und eignet sich sowohl für einfache als auch komplexe Animationsanforderungen.

Anwendungsfälle

  • Animierte Banner anzeigen
  • Interaktive Ladeanzeiger erstellen
  • Benutzeroberflächen mit dynamischen Visualisierungen verbessern
  • Benutzerdefinierte GIF-Player implementieren
  • Spielerische Animationen zu App-Elementen hinzufügen

Hauptmerkmale

  • Steuerung der GIF-Wiedergabegeschwindigkeit
  • Einstellbarer Animationsfortschritt
  • Frame-Wiederholungseinstellungen
  • Leichte und effiziente Darstellung
  • Einfache Integration in bestehende Flutter-Projekte

Geeignet für

  • Entwickler, die medienreiche Apps erstellen
  • UI-Designer, die animierte Elemente benötigen
  • Apps, die anpassbare GIFs erfordern
  • Projekte, die sich auf Leistung und reibungslose Animationen konzentrieren

Hinweise

  • Nur im GIF-Format begrenzt
  • Kein Support für andere Animationsformate
  • Kann für große GIFs eine Optimierung erfordern
  • plattformspezifisches Verhalten kann variieren

Original-README

Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.

flutter_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.

Screenshots

Usage(Simple)

add in pubspec


     flutter_gif: any // or the latest version on Pub

simple usage

    FlutterGifController controller= FlutterGifController(vsync: this);


    GifImage(
         controller: controller,
         image: AssetImage("images/animate.gif"),
    )

list the most common operate in FlutterGifController:

// loop from 0 frame to 29 frame
controller.repeat(min:0, max:29, period:const Duration(millseconds:300));

// jumpTo thrid frame(index from 0)
controller.value = 0;

// from current frame to 26 frame
controller.animateTo(26);

If you need to preCache gif,try this

// put imageProvider
fetchGif(AssetImage("images/animate.gif"));

Support the package (optional)

If you find this package useful, you can support it for free by giving it a thumbs up at the top of this page. Here's another option to support the package:

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.

Kategorien

Quell-Repository

Projekte, die dieses Paket verwenden

Noch keine Daten verfügbar.