FlutterQueen/validators
validate variables and forms with pre built functions qValidator function
前往 github 下載Q U E E N
👑
For More Features OUT-OF-THE-BOX (localization) see
Official Documentation site
Validators
🌍
Usage
if you need
- simple true of false function to validate a input
- validate a normal flutter Form field
@override
Widget build(BuildContext context) {
return TextFormField(
// use qValidator function and provider list of rules to apply on this field
validator: qValidator([
IsRequired(),
IsOptional()
IsEmail(),
MinLength(8),
MaxLength(30, "optionally you can override the failure if the validation fails"),
]),
);
}
customization
if you need to show a custom error message you can
- use the rule constructor (scooped for a single rule)
- use
ValidatorsLocalization.on
(scooped for the entire Type rules)
void main() {
ValidatorsLocalization.on<IsRequired>((rule) => 'the new required message');
}
- if you use queen all the rules are localized out of the box 🎁 !
與 FlutterQueen/validators 相關優秀專案推薦下載
gsy_github_app_flutter
14559
Flutter 超完整的开源项目,功能丰富,适合学习和日常使用。GSYGithubApp系列的优势:我们目前已经拥有Flutter、Weex、ReactNative、kotlin 四个版本。 功能齐全,项目框架内技术涉及面广,完成度高,持续维护,配套文章,适合全面学习,对比参考。跨平台的开源Github客户端App,更好的体验,更丰富的功能,旨在更好的日常管理和维护个人Github,提供更好更方便的驾车体验Σ( ̄。 ̄ノ)ノ。同款Weex版本 : https://github.com/CarGuo/GSYGithubAppWeex 、同款React Native版本 : https://github.com/CarGuo/GSYGithubApp 、原生 kotlin 版本 https://github.com/CarGuo/GSYGithubAppKotlin
dio
12249
A powerful HTTP client for Dart and Flutter, which supports global settings, Interceptors, FormData, aborting and canceling a request, files uploading and downloading, requests timeout, custom adapters, etc.
gopeed
11832
A modern download manager that supports all platforms. Built with Golang and Flutter.
pikapika
5463
美观易用且无广告的漫画和游戏客户端,同时支持MacOS,Windows,Android,iOS。
isar
3366
Extremely fast, easy to use, and fully async NoSQL database for Flutter
saber
1718
The cross-platform open-source app built for handwriting
sharik
1095
Sharik is an open-source, cross-platform solution for sharing files via Wi-Fi or Mobile Hotspot
kitchenowl
959
KitchenOwl is a self-hosted grocery list and recipe manager. The backend is made with Flask and the frontend with Flutter. Easily add items to your shopping list before you go shopping. You can also create recipes and add items based on what you want to cook.
CamerAwesome
881
📸 Embedding a camera experience within your own app shouldn't be that hard. A flutter plugin to integrate awesome Android / iOS camera experience.
realm-dart
722
Realm is a mobile database: a replacement for SQLite & ORMs.
wax
671
“绅士漫画”的客户端
Tachidesk-Sorayomi
646
A free and open source manga reader app to read manga from a Tachidesk-Server instance.
air-controller-desktop
531
A new handy and powerful Android phone assistant, powered by Flutter.
card_settings
523
A flutter package for building card based forms.
jiffy
516
Jiffy is a Flutter (Android, IOS and Web) date time package for parsing, manipulating, querying and formatting dates
transformer_page_view
510
PageTransformer for flutter
PersistentBottomNavBar
504
A highly customizable persistent bottom navigation bar for Flutter
ESSE
490
Encrypted peer-to-peer IM for data security. Own data, own privacy. (Rust+Flutter)
reactive_forms
454
This is a model-driven approach to handling form inputs and validations, heavily inspired in Angular's Reactive Forms
flutter_flavorizr
421
A flutter utility to easily create flavors in your flutter application