パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v2.2.2

timer_count_down

シンプルなカウントダウンタイマー。簡単なタイマーを作成するために使用します。すべて純粋です

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
3万
いいね数
200
Pub ポイント
150

パッケージをインストール

flutter pub add timer_count_down

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

最小限の設定で基本的なタイマーを作成するために設計された、シンプルで純粋なDartカウントダウンタイマー用パッケージです。Android、iOS、Web、macOS、Windows、Linuxなど、多数のプラットフォームをサポートしています。複雑な依存関係が不要な、単純なカウントダウン機能が必要なアプリケーションに最適です。軽量で簡単に統合できるため、ゲーム内のタイマー、リマインダー、タイム制限のチャレンジなどの用途に適しています。

用途

  • アプリでシンプルなカウントダウンを作成する
  • 時間制限付きチャレンジの実装
  • リマインダーやアラームシステムの構築
  • 教育アプリにタイマーを追加する
  • ゲームメカニクスの使用
  • 残り期間インジケーターの表示

主な機能

  • 軽量で純粋な Dart
  • クロスプラットフォーム対応
  • カウントダウン用のシンプルな API
  • 外部の依存関係なし
  • Flutter との簡単な統合
  • 設定可能なカウントダウン期間

適している対象

  • 初心者のFlutter開発者
  • シンプルなタイマー実装
  • 基本的なカウントダウンロジックを必要とするアプリ
  • 最小限の依存関係を持つプロジェクト
  • 時間ベースのUIコンポーネント

注意事項

  • 限定された高度な機能
  • 複雑なタイミングシナリオには向いていません
  • 組み込みの一時停止/再開機能なし
  • コールバックの手動処理が必要
  • 基本的なカウントダウンのニーズにのみ最適
  • 基本設定以上のカスタマイズは不可

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Simple Count Down

pub

A highly customizable countdown widget for Flutter, with support for custom styling, intervals, and onFinished callbacks.

Preview

Installing

  • Add the latest version of the package to your pubspec.yaml file in the dependency section.
  dependencies:
    flutter:
      sdk: flutter

    timer_count_down: ^2.2.2

Run this in your terminal or click on pub get

$ flutter pub get

How to use

Simple example for the usage of the package is shown below.

class MyWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Countdown(
      seconds: 20,
      build: (BuildContext context, double time) => Text(time.toString()),
      interval: Duration(milliseconds: 100),
      onFinished: () {
        print('Timer is done!');
      },
    );
  }
}

Example

For pause, restart and resume you need to use CountdownController. For an example of using the package, please check the example folder. Otherwise, keep reading and keep going!

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト