搜尋套件、儲存庫與 APP 分類

套件詳情v0.0.2

meta_validator

一個整潔的實用工具,可專業地處理字串驗證。它支援 iOS、Android、Web 和 Linux 平台(當然也包含這些平台)。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
10
喜歡數
23
Pub 分數
120

安裝套件

flutter pub add meta_validator

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Meta Validator 是一個跨平台的 Flutter 套件,旨在簡化在 Android、iOS、Web、macOS、Windows 和 Linux 上的字串驗證。它提供了一個乾淨直覺的 API,用於驗證電子郵件、密碼、電話號碼和自訂模式等輸入內容。此套件以開發者體驗為設計核心,支援即時回饋,並能順暢整合至表單中。該套件輕量級、文件完整,非常適合需要強大輸入驗證卻無需樣板程式碼的應用程式。

適用情境

  • 行動與Web應用中的表單驗證
  • 即時輸入驗證
  • 電子郵件與電話號碼驗證
  • 自定義模式匹配
  • 安全的密碼強度檢查

主要特色

  • 跨平台支援
  • 易於使用的驗證規則
  • 即時驗證反饋
  • 支援自訂正則表達式模式
  • 輕量且高效

適合對象

  • 開發跨平台 Flutter 應用的開發者
  • 需要嚴格輸入驗證的應用程式
  • 表單密集型應用
  • 重視程式碼潔淨與可維護性的團隊

使用建議

  • 需要手動設定以進行複雜的驗證邏輯
  • 有限的內建驗證器,僅限於常見模式
  • 錯誤訊息沒有內建的國際化支援

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

⚡Meta validator

A tidy utility to handle validation of strings like a pro. It provides support for both iOS, Android, Web, Linux platforms (offcourse).

🎖Installing

dependencies:
  meta_validator: ^<latest_version>

⚽Awesome Features

🔥StrengthChecker.getPasswordStrength("some password")

  • Check the strength of your password ranging between 0.0 to 1.0

🔥StrengthChecker.getPasswordValidations( password: "aaa", defaultTitle: "DEFAULT", mediumTitle: "MEDIUM", strongTitle: "STRONG", weakTitle: "WEAK");

  • Get a customized string for password strength. Add you custom messages for each password validation with a default statement.

🔥StringValidator.validateEmail("fake email")

  • Check if your email address is valid or not.

🔥StringValidator.validatePostalCode("fake postal code")

  • Check if your postal code is valid or not.

🔥StringValidator.validateBlacklisted(["apple", "ball"], "ball")

  • Check if the inserted word is blacklisted or not.

😎 + 10 more string validators!


❤Loved the utility? Donate here.
🚀Want to learn more about Flutter? Checkout this out!
💥DM me on Instagram for doubts Follow here

🐛 Bugs/Requests

If you encounter any problems feel free to open an issue. If you feel the library is missing a feature, please raise a ticket on Github and I'll look into it. Pull request are also welcome.

所屬分類

依賴

依賴清單 1 項

  • update^0.3.1

原始碼儲存庫

使用此套件的專案

暫無相關資料。