circular_countdown 1.1.1 copy "circular_countdown: ^1.1.1" to clipboard
circular_countdown: ^1.1.1 copied to clipboard

outdated

A package that represents a circular countdown that you can use for every kind of units (days, hours, seconds, points, ...).

example/lib/main.dart

import 'package:flutter/material.dart';

import 'countdowns/static_countdown.dart';
import 'countdowns/time_countdown.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(
      title: 'Circular Countdown',
      home: MyHomePage(),
      debugShowCheckedModeBanner: false,
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({
    Key key,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('CircularCountdown Example'),
        backgroundColor: Colors.transparent,
        elevation: 0,
      ),
      backgroundColor: Colors.grey[900],
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            RaisedButton(
              onPressed: () => Navigator.of(context).push(
                MaterialPageRoute<StaticCountdownPage>(
                  builder: (context) => const StaticCountdownPage(),
                ),
              ),
              child: const Text('Static CircularCountdown'),
            ),
            RaisedButton(
              onPressed: () => Navigator.of(context).push(
                MaterialPageRoute<TimeCountdownPage>(
                  builder: (context) => const TimeCountdownPage(),
                ),
              ),
              child: const Text('Time CircularCountdown'),
            ),
          ],
        ),
      ),
    );
  }
}
72
likes
0
points
1.24k
downloads

Publisher

unverified uploader

Weekly Downloads

A package that represents a circular countdown that you can use for every kind of units (days, hours, seconds, points, ...).

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on circular_countdown