countdown_flutter_copy 0.0.3 copy "countdown_flutter_copy: ^0.0.3" to clipboard
countdown_flutter_copy: ^0.0.3 copied to clipboard

outdated

this project was copy from countdown_flutter

example/lib/main.dart

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


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

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

  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  final _done = false;
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(
          title: Text(_done ? 'Finished!' : 'Counting...'),
        ),
        body: Column(
          mainAxisAlignment: MainAxisAlignment.spaceAround,
          children: <Widget>[
            Center(
              child: CountdownFormatted(
                duration: const Duration(hours: 2),
                builder: (BuildContext ctx, String remaining) {
                  return Text(
                    remaining,
                    style: const TextStyle(fontSize: 30),
                  ); // 01:00:00
                },
              ),
            ),
          ],
        ),
      ),
    );
  }
}
1
likes
0
pub points
6%
popularity

Publisher

unverified uploader

this project was copy from countdown_flutter

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on countdown_flutter_copy