Pakete, Repositories und App-Kategorien suchen

Cover von circular_countdown
Paketdetailsv2.1.0

circular_countdown

Ein Paket, das eine kreisförmige Rückwärtszählung darstellt, die für jede Art von Einheiten (Tage, Stunden, Sekunden, Punkte, ...) verwendet werden kann.

AndroidiOSWebmacOSWindowsLinux
30-Tage-Downloads
2460
Likes
72
Pub-Punkte
150

Paket installieren

flutter pub add circular_countdown

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

Ein Flutter-Paket, das einen anpassbaren kreisförmigen Countdown-Zähler bereitstellt, geeignet zum Anzeigen von Zeitintervallen wie Tagen, Stunden, Minuten, Sekunden oder sogar abstrakten Werten wie Punkten. Es verfügt über fließende Animationen und eine intuitive Benutzeroberfläche, ideal für Apps, die visuelle Countdowns erfordern, wie Timer, Spiele oder Aufgabenverfolger. Das Paket unterstützt mehrere Plattformen, darunter Android, iOS, Web, macOS, Windows und Linux.

Anwendungsfälle

  • Spiel-Timer
  • Aufgaben-Rückwärtszählung
  • Ereignis-Countdowns
  • Fitness-Tracking
  • Interaktive Benutzeroberflächenelemente

Hauptmerkmale

  • Glatte kreisförmige Animation
  • Anpassbare Zeiteinheiten
  • Plattformübergreifende Unterstützung
  • Konfigurierbare Farben und Größen
  • Einfache Integration mit Flutter-Widgets

Geeignet für

  • Entwickler, die interaktive Countdown-Oberflächen erstellen
  • Apps, die eine visuelle Zeitverfolgung benötigen
  • Gamifizierte Anwendungen
  • Bildungs- oder Produktivitäts-Tools

Hinweise

  • Benötigt manuelle Handhabung der Countdown-Logik
  • Eingeschränkte integrierte Formatierungsoptionen
  • Am besten geeignet für einfache Countdown-Anforderungen anstelle komplexer Planung

Original-README

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

circular_countdown

A package that represents a circular countdown that you can use for every kind of units (days, hours, seconds, points, ...).

Demo

A web demo is available here : https://mattisbrizard.github.io/circular_countdown/#/

Build Status

Getting Started

In the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
  ...
  circular_countdown: ^2.1.0

In your library add the following import:

import  'package:circular_countdown/circular_countdown.dart';

Static countdown

This is the way to create a simple static countdown.

import 'package:flutter/material.dart';
...
return CircularCountdown(
	countdownTotal:  10,
	countdownRemaining:  7,
);
...

By playing with the parameters, you can change the size, the colors, the size of the gaps, the strokeWidth and more to have more complex Countdowns.

Timer countdown

If you want to have full control on the timer (start, pause, etc), please see the section Controlled countdown below.

If you want to use the CircularCountdown widget as a Time Countdown, you can use the built-in TimeCircularCountdown that wraps the timer logic for you: (see how in example)

return TimeCircularCountdown(
    unit: CountdownUnit.seconds,
    countdownTotal: 30,
    onUpdated: (unit, remainingTime) => print('Updated'),
    onFinished: () => print('Countdown finished'),
);

You can repeat the timer when ended by using the repeat bool property.

Controlled countdown

To have full control on the timer (play, pause, reset, shared between mutliple screen, etc), you can use CircularCountdown with the timer_controller library.

You can see the code in the example app.

Contribution

If you find a bug or want a feature, but don't know how to fix/implement it, please fill an issue. If you fixed a bug or implemented a feature, please send a pull request.

Kategorien

Quell-Repository

Projekte, die dieses Paket verwenden