Automates the implementation and documentation of Python-side control validation for Flet applications.
This skill provides specialized guidance for Flet developers to implement robust validation logic for Python controls using the V-rule validation API. It ensures that data validation is consistent across the Python SDK and the underlying Dart-based Flet engine, automating the creation of Google-style 'Raises' docstrings and aligning cross-field invariants to prevent runtime errors before they cross the bridge to the UI layer.
Key Features
0116,009 GitHub stars
02Synchronization of Python constraints with Dart/Flutter behavior
03Cross-field invariant management via __validation_rules__
04Declarative field validation using Annotated types and V rules
05Automated Google-style property docstring generation for validation errors
06Migration support for moving manual checks to the validation API
Use Cases
01Migrating legacy manual before_update checks to modern declarative rules
02Adding range or value constraints to new Flet control properties
03Aligning Python-side validation with effective Dart defaults and assertions