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 ↗