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

date_count_down のカバー
パッケージ詳細v4.0.0

date_count_down

これは、Flutter開発者向けにDartで書かれたFlutterカウントダウンパッケージです。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
812
いいね数
40
Pub ポイント
140

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

flutter pub add date_count_down

パッケージ概要

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

Dartで書かれたFlutterパッケージで、開発者向けにシンプルかつカスタマイズ可能なカウントダウンタイマーを提供します。日付に基づいてカウントダウンを作成でき、スムーズなアニメーションとFlutterアプリへの簡単な統合が可能です。イベントのタイマー、リマインダー、または時間制限機能に最適です。このパッケージはAndroid、iOS、Web、macOS、Windows、Linuxなどすべての主要プラットフォームをサポートしており、クロスプラットフォームアプリケーションに非常に柔軟に対応できます。

用途

  • イベントカウントダウン
  • 期間限定のオファー
  • リマインダーシステム
  • ゲームタイマー
  • アプリ内のカウントダウンウィジェット

主な機能

  • 日付ベースのカウントダウン
  • クロスプラットフォーム対応
  • カスタマイズ可能な UI
  • スムーズなアニメーション
  • Flutter との簡単な統合

適している対象

  • Flutter開発者
  • イベントアプリ
  • ECタイマー
  • 教育アプリ
  • ゲーム化体験

注意事項

  • 有効な日付の入力が必要です
  • 時間の期間のみに制限
  • タイムゾーンの処理なし
  • 長期的なバックグラウンドタイマーには適していません
  • UIのカスタマイズには追加のコードが必要です

元の README

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

flutter_countDown

A new Flutter package that provide already made Count down functionality Screenshoot

Usage

[Example] (https://github.com/Destiny-Ed/date_count_down/blob/main/example/example.dart)

To use this package : *add the dependency to your [pubspec.yaml] file

   dependencies:
        flutter:
            sdk : flutter
        date_count_down:

Add to your dart file


import 'package:date_count_down/date_count_down.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text(
              'Countdown Timer:',
            ),
            CountDownText(
              due: DateTime.utc(2050),
              finishedText: "Done",
              showLabel: true,
              longDateName: true,
              style: TextStyle(color: Colors.blue),
            ),
            Text(
              'Countdown Timer with custom label:',
            ),
            CountDownText(
              due: DateTime.parse("2050-01-01 00:00:00"),
              finishedText: "Done",
              showLabel: true,
              longDateName: true,
              daysTextLong: " DAYS ",
              hoursTextLong: " HOURS ",
              minutesTextLong: " MINUTES ",
              secondsTextLong: " SECONDS ",
              style: TextStyle(color: Colors.blue),
            )
          ],
        ),
      ),
    );
  }
}


Acknowledgement

Special thanks to ekhiw to adding the custom values to the package

Follow me

[Github] (https://github.com/Destiny-Ed)

[Twitter] (https://twitter.com/DestinyEd8)

[Linkedin] (linkedin.com/in/destiny-ed)

[Youtube] (https://www.youtube.com/channel/UCFEtn_pdpZPT9vMxovgTp0A)

カテゴリー

ソースリポジトリ

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

データはまだありません。