波斯-阿拉伯数字格式化
adultcode/Persian-Arabic-number-formatter open-source repository details.
- 星标
- 0
- 复刻
- 0
- 最近推送(UTC)
- 2023年9月20日
- 项目状态
- 未归档
原始 README
以下为英文项目原文快照,最新内容请访问 GitHub。
Persian/Arabic number input formatter
If you use the digitsOnly formatter option on a TextField in Flutter, it only works with English digits, and you can't use Persian/Arabic numbers. However, if you don't use any input formatter, then you can't convert Persian/Arabic digits to an integer
How to use
Add this line to your file
package:persian_input/validator/number_validator.dart
Now simply add PersianNumberValidator class in inputFormatters list.
TextField(
inputFormatters:[
PersianNumberValidator()
],
decoration: const InputDecoration(
hintText: 'With persian formatter'
),
)
语言C++CMakeDartHTMLSwiftCShellObjective-CJavaKotlin
使用的依赖
依赖清单 3 项
- flutter
{"sdk":"flutter"} - flutter_test开发依赖
{"sdk":"flutter"} - flutter_lints开发依赖
^2.0.0
如何选择适合项目的代码仓?
先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
- 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
- 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
- 使用前在 GitHub 核对 README、许可证与 Issues。
来源与维护
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗
