v1.0.5mask
该项目旨在让您能够在项目中以简单便捷的方式进行验证和格式化
35喜欢 177近 30 天下载160Pub 分数
AndroidiOSWebmacOSWindowsLinux
welitonsousa/mask open-source repository details.
以下为英文项目原文快照,最新内容请访问 GitHub。
Validations are for you to be able to simply validate your field
The masks are for you to be able to customize your field, according to that information
// money mask and validation
TextFormField(
autovalidateMode: AutovalidateMode.onUserInteraction,
validator: (value) => Mask.validations.money(
value,
min: 100.0, // optional field
),
inputFormatters: [Mask.money()],
),
// cpf or cnpj mask and validation
TextFormField(
validator: Mask.validations.cpfOrCnpj,
inputFormatters: [Mask.cpfOrCnpj()],
),
// your custom mask and validation
TextFormField(
validator: (value) => Mask.validations.generic(value, min:8, error: 'info erro'),
inputFormatters: [
Mask.generic(
masks: ['##-##-##'],
hashtag: Hashtag.numbers, // optional field
),
),
)
Feito com ❤️ by Weliton Sousa
依赖清单 3 项
{"sdk":"flutter"}{"sdk":"flutter"}^1.0.0先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗