FLUTTER ECOSYSTEM

DizoftTeam/simple_count_down

Flutter용 간단한 카운트다운(타이머)

simple_count_down 프로젝트 이미지
Stars
60
Forks
24
최근 푸시(UTC)
2023. 8. 5.
프로젝트 상태
활성
Dizoft Team GitHub avatar
GITHUB Organization

Dizoft Team ↗

언어DartSwiftKotlinObjective-C

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 3 개
  • flutter{"sdk":"flutter"}
  • lint개발 의존성^1.3.0
  • pedantic개발 의존성^1.9.0

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

Simple Count Down

pub https://badges.fyi/github/latest-tag/DizoftTeam/simple_count_down https://badges.fyi/github/stars/DizoftTeam/simple_count_down https://badges.fyi/github/license/DizoftTeam/simple_count_down

A highly customizable countdown widget for Flutter, with support for custom styling, intervals, and onFinished callbacks.

Preview

https://raw.githubusercontent.com/DizoftTeam/simple_count_down/master/assets/preview.gif

Installing

  • Add the latest version of the package to your pubspec.yaml file in the dependency section.
  dependencies:
    flutter:
      sdk: flutter

    timer_count_down: ^2.2.2

Run this in your terminal or click on pub get

$ flutter pub get

How to use

Simple example for the usage of the package is shown below.

class MyWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Countdown(
      seconds: 20,
      build: (BuildContext context, double time) => Text(time.toString()),
      interval: Duration(milliseconds: 100),
      onFinished: () {
        print('Timer is done!');
      },
    );
  }
}

Example

For pause, restart and resume you need to use CountdownController. For an example of using the package, please check the example folder. Otherwise, keep reading and keep going!