v0.0.3numpad_layout
유연한 사용자 정의 및 아라비아 숫자 지원을 포함한 숫자 키보드용 새로운 Flutter 패키지입니다. 그 외에도 많은 기능이 있습니다.
24좋아요 34930일 다운로드160Pub 점수
AndroidiOSWebmacOSWindowsLinux
숫자 키보드용 새 Flutter 패키지입니다.
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
an numeric Keyboard Layout supports english and arabic digits
| Parameter | Default | Description |
|---|---|---|
| onType | required | Callback when number pressed . |
| mainAxisAlignment | MainAxisAlignment.spaceBetween | for spacing horizontal . |
| padding | horizontal = 30 | padding over the whole layout . |
| leftWidget | null | the widget at the left of the 0 . |
| rightWidget | null | the widget at the right of the 0 . |
| highlightColor | Color(0xFFC9C9C9) | on Holding press any number. |
| runSpace | 40 | spacing vertical . |
| numberStyle | null | custom number style |
| radius | 45 | radius for the shape of the number . |
| arabicDigits | false | Displays arabic digits if equal true |
| returnItAsEnglish | false | it returns the digits as english even it's arabic digits . |
NumPad(
arabicDigits: true,
onType: (value) {
number += value;
setState(() {});
},
rightWidget: IconButton(
icon: const Icon(Icons.backspace),
onPressed: () {
if (number.isNotEmpty) {
number = number.substring(0, number.length - 1);
setState(() {});
}
},
),
);
also you can find The sample code under the example package.
의존성 목록 3 개
{"sdk":"flutter"}{"sdk":"flutter"}^2.0.1사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗