v0.0.3numpad_layout
一个全新的 Flutter 包,用于数字键盘,支持灵活的自定义以及阿拉伯数字支持,还有更多功能。
24喜欢 349近 30 天下载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 ↗