osamaasifoak/owesome_validator
一個用於 Flutter 的驗證套件,基於純 Dart 程式碼,將提供大多數常見的驗證功能,例如姓名、電子郵件、密碼、聯絡方式等。
- Stars
- 5
- Forks
- 1
- 最近推送(UTC)
- 2022年1月24日
- 專案狀態
- 未封存
語言Dart
技術主題
使用的依賴
依賴清單 2 項
- flutter
{"sdk":"flutter"} - flutter_test開發依賴
{"sdk":"flutter"}
原始 README
以下為英文專案原文快照,最新內容請造訪 GitHub。
展開 / 收合專案 README
Owesome_validator ✔️
pub package
A flutter package for make your life easy. This package is used for validation.
Show some ❤️ and star the repo to support the project
This Package is open for contributions.
Usage
To use this plugin, add owesome_validator as a dependency in your pubspec.yaml file.
Getting Started
-
First import a package into your file.
-
After importing, we are able to get the built-in methods
- Name Validation 📛
OwesomeValidator.name(name, OwesomeValidator.patternNameOnlyChar); - Email Validation ✉️
OwesomeValidator.email(email, OwesomeValidator.patternEmail); - Phone Validation 📞
OwesomeValidator.phone(phone, OwesomeValidator.patternPhone); - password 🔑
OwesomeValidator.password(password, OwesomeValidator.passwordMinLen8withCamelAndSpecialChar)
- Name Validation 📛
Note
You can pass your custom regex for validation. This package will be improved more by time to time