count_down_time 0.0.8 copy "count_down_time: ^0.0.8" to clipboard
count_down_time: ^0.0.8 copied to clipboard

A count-down timer package with options to reset and set current time.

example/lib/main.dart

import 'package:count_down_time_demo/count_down_time_example.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const CountDownTimeAppDemo());
}

class CountDownTimeAppDemo extends StatefulWidget {
  const CountDownTimeAppDemo({Key? key}) : super(key: key);

  @override
  State<CountDownTimeAppDemo> createState() => _CountDownTimeAppDemoState();
}

class _CountDownTimeAppDemoState extends State<CountDownTimeAppDemo> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Count Down Time Demo'),
        ),
        body: Container(
          padding: const EdgeInsets.all(15),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            mainAxisAlignment: MainAxisAlignment.center,
            mainAxisSize: MainAxisSize.max,
            children: [
              const CountDownTimeApp(
                  textStyle: TextStyle(color: Colors.red, fontSize: 35),
                  timeStartInSeconds: 30),
              CountDownTimeApp.minutes(
                  textStyle: const TextStyle(color: Colors.red, fontSize: 35),
                  timeStartInMinutes: 2),
              CountDownTimeApp.hours(
                  textStyle: const TextStyle(color: Colors.red, fontSize: 35),
                  timeStartInHours: 2)
            ],
          ),
        ),
      ),
    );
  }
}
6
likes
160
points
169
downloads

Publisher

unverified uploader

Weekly Downloads

A count-down timer package with options to reset and set current time.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on count_down_time