flutter-bloc-forms

Community

Map Laravel 422 errors to field UI.

AuthorabdallhMoukdad
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Complex Flutter forms become hard to keep consistent when validation is split across widgets, Bloc state, and server responses, especially when Laravel returns per-field 422 errors.

Core Features & Use Cases

  • Formz-based per-field validation: Moves validation rules into typed Formz value objects so errors are derived from field inputs and only displayed after the field becomes dirty.
  • Bloc-driven orchestration: Uses a Bloc to hold all form fields, compute overall validity, manage submission status, and submit requests using the same Bloc event flow.
  • Laravel 422 round-trip mapping: Routes server-side validation errors back to the correct FormzInput instances so the UI shows the right error messages inline.

Quick Start

Ask the AI to generate a LoginFormBloc with EmailInput and PasswordInput that maps Laravel 422 validation errors to the corresponding fields.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: flutter-bloc-forms
Download link: https://github.com/abdallhMoukdad/flutter-bloc-skills/archive/main.zip#flutter-bloc-forms

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.