搜索插件、代码仓与 APP 分类

插件详情v2.0.0

acanthis

Acanthis 是一个用于 Dart 和 Flutter 的易于使用的验证库。

AndroidiOSmacOSWindowsLinux
近 30 天下载
5120
喜欢数
50
Pub 分数
160

安装插件

flutter pub add acanthis

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Acanthis 是一个轻量级、易于使用的 Dart 和 Flutter 应用程序验证库。它提供了一个简单直观的 API,用于验证各种数据类型的用户输入,包括文本、数字和电子邮件地址。Acanthis 内置了验证器,并支持自定义规则,可简化移动和桌面应用程序中的表单验证。专为希望快速集成且无需样板代码的开发者设计,它提升了输入的可靠性与用户体验。该库兼容 Android、iOS、macOS、Windows 和 Linux 平台。

适合场景

  • Flutter 应用中的表单验证
  • 输入字段清理
  • 实时用户反馈
  • 自定义验证规则
  • 跨平台数据验证

主要特点

  • 简单 API
  • 内置验证器
  • 自定义规则支持
  • 跨平台兼容性
  • 最小化样板代码

适合对象

  • Flutter 初学者
  • 表单密集型应用
  • 移动和桌面应用
  • 希望快速验证的开发者
  • 需要一致输入检查的项目

使用建议

  • 仅限基本验证需求
  • 无内置国际化支持
  • 需要手动处理错误消息
  • 不适合复杂的业务逻辑
  • 依赖外部依赖管理

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Acanthis Banner

Acanthis

Acanthis is a simple and easy to use validation library for Dart. It is inspired by Zod although it is not a port of it. Acanthis is tailored to the Dart language and its features and is type-safe and composable.

Get Started | Pub.dev

Why Acanthis?

Acanthis provides validation for most of the Dart built-in types and allows you to create custom validators.

But that's not all! Acanthis is designed to be composable, so you can create complex validators by combining simpler ones.

Contributions

Contributions are welcome! If you want to contribute to Acanthis, you can open a pull request on the GitHub repository

License

Acanthis is licensed under the MIT License. You can read the MIT license

Credits

Acanthis is developed and maintained by Avesbox

所属分类

依赖

依赖清单 4 项

源码仓库

使用此插件的项目

暂无相关数据。