count 0.0.1 copy "count: ^0.0.1" to clipboard
count: ^0.0.1 copied to clipboard

A new Flutter package project.

A new Flutter package that provide already made Count down functionality Usage

[0.0.1] #

[Example] ( https://github.com/yashvenrakumar/countdown.git)

To use this package : *add the dependency to your [pubspec.yaml] file

''' dependencies: flutter: sdk : flutter date_count_down:'''

Add to your dart file

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

import 'package:date_count_down/date_count_down.dart';

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

class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Count Down', theme: ThemeData( primarySwatch: Colors.blue, visualDensity: VisualDensity.adaptivePlatformDensity, ), home: MyHomePage(title: 'Flutter Count Down'), ); } }

class MyHomePage extends StatefulWidget { MyHomePage({Key key, this.title}) : super(key: key);

final String title;

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

class _MyHomePageState extends State

@override Widget build(BuildContext context) { //List of Date to countDown List

return Scaffold(
  appBar: AppBar(
    title: Text(widget.title),
  ),
  body: Center(
    child: Column(
      mainAxisAlignment: MainAxisAlignment.center,
      children: <Widget>[
        Text(
          'You have pushed the button this many times:',
        ),
        Expanded(
          child: ListView(
            children: List.generate(3, (index) {
              countDown = CountDown()
                  .timeLeft(s[index], 'Time Ended', longDateName: true);
              return Text(
                countDown,
                style: Theme.of(context).textTheme.headline4,
              );
            }),
          ),
        )
      ],
    ),
  ),
  floatingActionButton: FloatingActionButton(
    onPressed: () {},
    tooltip: 'Increment',
    child: Icon(Icons.add),
  ),
);

} } '''

0
likes
110
pub points
19%
popularity

Publisher

unverified uploader

A new Flutter package project.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on count