reactive_forms_annotations
8.5.0, released 3 months ago by an unverified publisher
Annotations for reactive_forms_generator to generate form models
What it does
Provides annotations that the reactive_forms_generator uses to create form model classes. It enables type-safe form handling and validation in Flutter apps.
AI-written summary of version 8.5.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need strongly typed form models generated from annotations
- You want to avoid writing boilerplate form code manually
- You are already using reactive_forms and want code generation support
Skip it when
- You prefer manual form implementation
- You are not using reactive_forms or its generator
Strengths
- Zero runtime overhead, compile-time safety
- Reduces boilerplate for form fields and validation
- Integrates with reactive_forms ecosystem
Weaknesses
- Requires build_runner and code generation setup
- Limited to reactive_forms_generator only
- No runtime customization beyond annotations
Setup
- Kind
- Flutter widgets
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 3
Add dev_dependencies: build_runner, reactive_forms_generator; run flutter pub run build_runner build
// Add annotation to a class
@Rf()
class LoginForm {
@FormControl()
String? email;
@FormControl()
String? password;
}Alternatives
Packages that do the same job and could replace reactive_forms_annotations.
- reactive_forms_generator
Generator for type-safe reactive forms based on data models.
72Compare - dropdown_search
A simple, reactive, and highly customizable Flutter dropdown with search and multi-mode support.
87Compare - password_strength_checker
Generate secure passwords and validate strength with visual feedback and form widgets.
64Compare - moform
Reactive, type-safe form fields for Flutter without managing TextEditingControllers.
60Compare
Works with
Packages commonly used together with reactive_forms_annotations: ones it builds on, ones built on it, and its own family.