Aus öffentlichen Paketdaten erstellte Orientierung.
FlipPanelPlus ist ein Flutter-Paket, das animierte Flip-Panel-Widgets für die Anzeige von Inhalten wie Bildern, Countdowns oder Uhren ermöglicht. Es verfügt über reibungslose eingebaute Animationen, die den Effekt des physikalischen Umdrehens von Paneelen simulieren und sich ideal für Timer, Scoreboards oder dynamische Datenanzeigen eignen. Das Paket unterstützt mehrere Plattformen wie Android, iOS, Web, macOS, Windows und Linux und ist somit vielseitig für plattformübergreifende Anwendungen. Durch einfache Integration über pub add wird die Benutzererfahrung mit ansprechender visueller Rückmeldung verbessert.
Anwendungsfälle
Countdown-Timer
Digitale Uhren
Score-Anzeige
Bildflip-Übergänge
Interaktive Dashboards
Spiel-Punktestandverfolger
Hauptmerkmale
eingebaute Flip-Animation
Unterstützung für mehrere Inhaltstypen
Plattformübergreifende Kompatibilität
Einfache Integration
Anpassbare Erscheinung
Glatte Leistung
Geeignet für
Zeitbasierte Apps
Gamifikationsfunktionen
Dashboard-Widgets
Lernhilfsmittel
Echtzeit-Datenvisualisierung
Interaktive Benutzeroberflächenkomponenten
Hinweise
Kann die Leistung auf Low-End-Geräten beeinträchtigen
Begrenzte Anpassungsmöglichkeiten jenseits der grundlegenden Gestaltung
Erfordert sorgfältige Behandlung in Zustandskontexten
Nicht geeignet für komplexe Animationen
Am besten mit statischen oder vorhersagbaren Inhalten verwendet
Abhängig von konsistenten Datenaktualisierungen
Original-README
Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.
Flip Panel Plus
3D flip-panel widgets for Flutter: a countdown timer, a flip clock, and flipping
digits you can drive from any value.
Why this package
A countdown is easy to get wrong. Most implementations subtract a second on
every tick, which quietly drifts when a frame is slow, and jumps to the wrong
value after the app has been in the background.
FlipCountdown derives the time left from how much time has actually passed,
and reads two clocks to do it (a monotonic one and the wall clock), taking
whichever has advanced further:
Late or dropped ticks cannot cause drift; the value is recomputed, not
decremented.
Backgrounding or device sleep is handled: the wall clock catches the
countdown back up.
Moving the device clock backwards cannot rewind the countdown.
Server-driven deadlines are supported directly: pass referenceTime and
the device's own clock is never used to decide how long is left.
Segments are chosen automatically. Days only appear when the countdown is a day
or more, hours only when it is an hour or more. Override with showDays,
showHours, showMinutes and showSeconds.
Controlling it
Pass a FlipCountdownController when you need to drive the countdown from
elsewhere. A controller you create is yours to dispose.
A flip panel is drawn as two halves, and the gap between them is what gives a
split-flap its seam. Set panelSpacing: 0 for a seamless digit:
FlipCountdown(duration: d, panelSpacing: 0)
Labels, separators and segments
FlipCountdown(
duration: d,
showLabels: true,
labelPosition: FlipLabelPosition.above, // or below
labels: constFlipCountdownLabels.short(), // D / H / M / S
separator: constSizedBox(width: 10), // or SizedBox.shrink() to remove
showSeconds: false, // hide any segment
curve: Curves.easeOutBack, // easing on the fold
)
More looks, by composition
FlipCountdown is an ordinary widget, so looks that are not a digit style come
from wrapping it. Two common ones:
Tip on flip speed.flipDuration defaults to 450ms. Against a one-second
tick that means the digit is mid-fold for nearly half of every second, which
is fine behind a solid panel but reads as a broken glyph on the box-less
styles above. Shorten it (240 to 300ms) whenever the digits have no panel to
fold against.
Languages and RTL
Labels are ordinary strings, so pass whatever language you need:
In an RTL app the countdown still reads left to right. A clock is not
mirrored in Arabic or Hebrew: the hours stay on the left, and 12 stays 12
rather than becoming 21. The package pins the layout direction for you, so
dropping it inside an RTL Directionality needs no extra work. If you do want
the segments mirrored, ask for it explicitly:
period must be at least twice duration, otherwise the animation has no time
to settle between flips.
Testing
Time is read through package:clock, so
countdowns can be driven deterministically in tests with withClock, and they
advance normally under testWidgets and fakeAsync.
Credits
Based on flip_panel, which is no longer
maintained.