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

outdated

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_app.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: 3),
                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
0
points
138
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on count_down_time