Pakete, Repositories und App-Kategorien suchen

Cover von entry
Paketdetailsv1.0.3

entry

Lassen Sie Ihre Widgets zum Leben erwecken – Entry ermöglicht es Ihnen einfach, ein Widget in einen sichtbaren Zustand zu animieren. Ein Widget zur Animation von Deckkraft, Skalierung, Position und Winkel.

AndroidiOSWebmacOSWindowsLinux
30-Tage-Downloads
2490
Likes
315
Pub-Punkte
160

Paket installieren

flutter pub add entry

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

Entry ist ein Flutter-Paket, das Widget-Animationen vereinfacht, indem es glatte Übergänge für Deckkraft, Skalierung, Position und Rotation ermöglicht. Mit einem einzigen Widget können Entwickler Elemente mit minimalem Code in die Ansicht animieren, was es ideal für ansprechende Benutzeroberflächen macht. Es unterstützt alle wichtigen Plattformen einschließlich Android, iOS, Web, macOS, Windows und Linux und sorgt für konsistentes Verhalten über Geräte hinweg. Das Paket ist leichtgewichtig und einfach zu integrieren und konzentriert sich auf eine intuitive Syntax für gängige Animationsanforderungen.

Anwendungsfälle

  • Onboarding-Bildschirme
  • Ladeanzeiger
  • Dynamisches Listenelement wird sichtbar
  • Modale Pop-ups
  • Seitenübergänge
  • Interaktive Element-Hervorhebung

Hauptmerkmale

  • Steuerung einer Einzelwidgetanimation
  • Unterstützt Transparenz, Skalierung, Position und Rotation
  • Plattformübergreifende Kompatibilität
  • Minimale Einrichtung
  • glatter Standard-Easing
  • Anpassbare Dauer und Verzögerung

Geeignet für

  • Anfänger-Flutter-Entwickler
  • UI/UX-Designer, die schnelle Animationen suchen
  • Apps mit interaktiven oder dynamischen Inhalten
  • Schnelle Prototypenerstellung für UI-Änderungen
  • Projekte, die subtile Eingangseffekte erfordern

Hinweise

  • Beschränkt auf grundlegende Transformations- und Deckkraftanimationen
  • Nicht geeignet für komplexe choreografierte Sequenzen
  • Kann zusätzliche Zustandsverwaltung für erweiterte Anwendungsfälle erfordern
  • Leistungsbeeinträchtigung bei vielen gleichzeitigen Animationen

Original-README

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

entry

Entry

Pub Package Platform

CodeFactor CodeFactor


This Flutter package introduces a new widget : Entry.

It lets you simply animate a widget into a visible state.

  • Don't just display widgets : make them appear (and disappear).
  • Lightweight and flexible : one widget is all you need.
  • Wrap a widget with an Entry.all and watch it come to life.

Entry animates opacity, scale, position and angle concurrently.

You can visualize the Curves constants on its documentation page.

🏭 Constructors

Default

Entry({key, delay, duration, curve, visible, opacity, scale, xOffset, yOffset, angle, child})

This constructor is motionless by default.

It includes every parameter available in named constructors.

Named

Entry has four named constructors :

  1. Entry.all({visible, opacity, scale, xOffset, yOffset, angle})

.all makes use of every animation by default, except for angle and xOffset.

The three others are each dedicated to a single animation :

  1. Entry.opacity({opacity})
  2. Entry.scale({scale})
  3. Entry.offset({xOffset, yOffset})

The key, delay, duration, curve, visible and child parameters are omitted here.

💕 Combining entries

Wrapping an Entry with another one works just as you expect it.

By playing with all the parameters, possibilities are endless.

You can copy one of the examples and start from there.

See in action

entry

👷 Grid builders

Fixed crossed-axis count

Using Entry with grid builders can create a staggered effect :

  • Wrap the generated child with an Entry widget
  • Multiply the delay value by the index % crossAxisCount

In result, the widgets of a same row will appear after each other.

See in action

entry

Randomization

You can set your delay and/or duration to a random number :

delay: Duration(milliseconds: random.nextInt(300))

This makes the entries look more independent from each other.

See in action

entry

✊ Motivation

  • Animations are key to elevate and refine the user experience.
  • By default, all widgets appear instantly. It feels basic, almost webpage-like.
  • Flutter doesn't provide a simple way to delay and animate a widget's entry into view.
  • Animations overall implies a lot of complexity and boilerplate code.
  • I got tired of copying the same file over multiple projects.

🙏 Credit

A special thank you to Felix Blaschke for his simple_animations package. This package literally depends on it.

Kategorien

Abhängigkeiten

Abhängigkeiten 2 Einträge

Quell-Repository

Projekte, die dieses Paket verwenden

Noch keine Daten verfügbar.