FLUTTER ECOSYSTEM

AliRn76/number_selection

Flutter 숫자 선택 패키지

number_selection 프로젝트 이미지
Stars
4
Forks
5
최근 푸시(UTC)
2021. 7. 14.
프로젝트 상태
활성
Ali RajabNezhad GitHub avatar
GITHUB User

Ali RajabNezhad ↗

Born to code, Forced to work

언어Dart

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 1 개
  • flutter{"sdk":"flutter"}

원본 README

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

README 펼치기 / 접기

Example

Demo

How to use

  • Import number_selection.dart
import 'package:number_selection/number_selection.dart';
  • And here an use example
NumberSelection(
    theme: NumberSelectionTheme(
        draggableCircleColor: Colors.blue,
        iconsColor: Colors.white,
        numberColor: Colors.white,
        backgroundColor: Colors.deepPurpleAccent,
        outOfConstraintsColor: Colors.deepOrange),
    initialValue: 1,
    minValue: -10,
    maxValue: 10,
    direction: Axis.vertical,
    withSpring: true,
    onChanged: (int value) => print("value: $value"),
    enableOnOutOfConstraintsAnimation: true,
    onOutOfConstraints: () => print("This value is too high or too low"),
);