animated_countdown_timer 0.1.3 copy "animated_countdown_timer: ^0.1.3" to clipboard
animated_countdown_timer: ^0.1.3 copied to clipboard

A customizable countdown timer with animations and callbacks.

example/example.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Countdown Timer Example')),
        body: Center(
          child: AnimatedCountdownTimer(
            initialCount: 5,
            textColor: Colors.yellow,
            overlayColor: Colors.black54,
            showText: true, // Set to true to show countdown number and done text
            doneText: "Time's Up!", // Custom text when countdown finishes
            showFontSize: 32, // Font size for done text
            numFontSize: 72, // Font size for countdown number
            onStart: () {
              debugPrint("Countdown started!");
            },
            onDone: () {
              debugPrint("Countdown finished!");
            },
          ),
        ),
      ),
    );
  }
}
1
likes
0
points
34
downloads

Publisher

unverified uploader

Weekly Downloads

A customizable countdown timer with animations and callbacks.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on animated_countdown_timer