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

A lightweight animated countdown widget + controller. State-management independent (ChangeNotifier based).

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Animation Countdown Demo',
      home: Scaffold(
        appBar: AppBar(title: const Text("Animation Countdown Demo")),
        body: Center(
          child: AnimationCountdown(
            duration: const Duration(minutes: 5, seconds: 30),
            colonTextStyle: const TextStyle(fontSize: 30, color: Colors.green),
            width: 60,
            height: 60,
            borderRadius: BorderRadius.circular(10),
            textStyle: const TextStyle(
              fontSize: 25,
              fontWeight: FontWeight.bold,
              color: Colors.white,
            ),
            minuteBoxColor: Colors.green,
            secondBoxColor: Colors.green,
            onFinish: () {
              debugPrint("⏱️ Timer Finished!");
            },
          ),
        ),
      ),
    );
  }
}
5
likes
140
points
16
downloads

Publisher

unverified uploader

Weekly Downloads

A lightweight animated countdown widget + controller. State-management independent (ChangeNotifier based).

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on animation_countdown