Search packages, repositories and app categories

date_count_down cover
Package detailsv4.0.0

date_count_down

This is a flutter countdown package written in dart for flutter developer.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
812
Likes
40
Pub points
140

Install package

flutter pub add date_count_down

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter package written in Dart that provides a simple and customizable countdown timer for developers. It allows users to create countdowns based on dates, with smooth animations and easy integration into Flutter apps. Ideal for timers in events, reminders, or time-limited features. The package supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux, making it highly versatile for cross-platform applications.

Use cases

  • Event countdowns
  • Time-limited offers
  • Reminder systems
  • Game timers
  • Countdown widgets in apps

Key features

  • Date-based countdowns
  • Cross-platform support
  • Customizable UI
  • Smooth animations
  • Easy integration with Flutter

Suitable for

  • Flutter developers
  • Event apps
  • E-commerce timers
  • Educational apps
  • Gamified experiences

Considerations

  • Requires valid date input
  • Limited to time duration only
  • No timezone handling
  • Not suitable for long-term background timers
  • UI customization requires additional code

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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)

Categories

Source repository

Projects using this package

No data available yet.