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

A customizable countdown timer with animations and callbacks.

example/example.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: CountdownExample(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: AnimatedCountdownTimer(
          initialCount: 5,
          textColor: Colors.yellow,
          overlayColor: Colors.black54,
          onStart: () {
            print("Countdown started!");
          },
          onDone: () {
            print("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