FLUTTER ECOSYSTEM

salmaanahmed/flutterCounter

Flutter Counter는 Dart로 작성된 플러터용 플러그인으로 매우 간단하고 사용자 정의가 가능합니다. 다른 위젯처럼 만들고 필요에 따라 매개변수를 추가하면 끝입니다! 콜백 기능이 있는 고도로 사용자 정의 가능한 카운터를 얻을 수 있습니다. 보일러플레이트 없음!

flutterCounter 프로젝트 이미지
Stars
14
Forks
13
최근 푸시(UTC)
2020. 5. 12.
프로젝트 상태
활성
Salmaan Ahmed GitHub avatar
GITHUB User

Salmaan Ahmed ↗

Creating awesome software @Hypercare

언어DartObjective-CJava

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 3 개
  • flutter{"sdk":"flutter"}
  • cupertino_icons^0.1.2
  • flutter_test개발 의존성{"sdk":"flutter"}

원본 README

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

README 펼치기 / 접기

Flutter Counter (iOS & Android)

Description

Flutter Counter is a plugin written in dart for flutter which is really simple and customizeable. Create it like any other widget, add params according to your need and presto! You have got the highly customizeable counter with callbacks. Zero boilerplate!


https://github.com/salmaanahmed/flutterCounter/blob/master/screenshots/gif-counter-control.gif

Getting Started

Create this widget as you do with other widgets

Counter(
  initialValue: _defaultValue,
  minValue: 0,
  maxValue: 10,
  step: 0.5,
  decimalPlaces: 1,
  onChanged: (value) { // get the latest value from here
    setState(() {
      _defaultValue = value;
    });
  },
),

Constructor Options

There are some required values and other are for the customization

  @required num initialValue    // default value
  @required this.minValue       // minimum value
  @required this.maxValue       // maximum value
  @required this.onChanged      // callback
  @required this.decimalPlaces  // decimal places you want to show the value of
  this.color                    // color of the buttons
  this.textStyle                // text style which displays the value
  this.step = 1                 // step you want to set to change value
  this.buttonSize = 25          // if you want to change size of button

Beautify your widget with provided customization. You can also change color and size of both buttons and text. Very simple to implement and looks awesome. You can find more details in sample app.

Contributions and Licence

FlutterCounter is available under the MIT license. See the LICENSE file for more info.

Pull requests are welcome! The best contributions will consist of substitutions or configurations for classes/methods known to block the main thread during a typical app lifecycle.

I would love to know if you are using Counter in your app, send an email to [Salmaan Ahmed](mailto:salmaan.ahmed@hotmail.com)