formio 2.0.2
formio: ^2.0.2 copied to clipboard
Flutter widgets for rendering Form.io forms with full feature parity. Includes 46+ components, validation, wizard forms, calculations, and JavaScript support.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
2.0.1 - 2026-01-13 #
Changed #
- Updated dependencies for pub.dev compatibility:
flutter_lints: ^3.0.0 → ^6.0.0
- Changed
formio_apifrom path dependency to hosted dependency ^2.0.1
Added #
- Added missing
dio^5.9.0 dependency (required bydatasource_component)
Fixed #
- Removed debug print statements for production readiness
- Cleaned up unused state fields in components
2.0.0 - 2026-01-13 #
Breaking Changes #
- Package Split:
formiopackage has been split into two packages:formio_api- Pure Dart API client (no Flutter dependencies)flutter_formio- Flutter widgets for rendering forms
- Import Changes: Update imports from
package:formio/formio.darttopackage:formio/formio.dart - JS Evaluator: Must now explicitly initialize JavaScript evaluator in
main():JavaScriptEvaluator.setEvaluator(FlutterJsEvaluator());
Added #
- Pure Dart Support:
formio_apican now be used in non-Flutter Dart projects - Pluggable JS Engine:
JsEvaluatorinterface allows custom JavaScript implementations - Custom Locale Interface: Pure Dart
FormioLocaleinterface for API package - Dependency Injection: Platform-independent architecture with injectable components
- NoOp JS Evaluator: Testing-friendly no-op evaluator for unit tests
Changed #
- Package Structure: Monorepo with
packages/formio_apiandpackages/flutter_formio - Dependencies:
flutter_formionow depends onformio_api^2.0.0 - Component Builder: Changed from typedef to abstract class
FormioComponentBuilder
Improved #
- Modularity: Clean separation between API logic and UI components
- Testability: Pure Dart API package is easier to test
- Flexibility: Custom JS engines, locales, and validators
- Documentation: Comprehensive README, migration guide, and API documentation
Migration #
See MIGRATION.md for detailed upgrade instructions.
1.1.0 - 2026-01-12 #
Added #
- JavaScript evaluation support for calculations and validations
- flutter_js integration for cross-platform JS execution
- Comprehensive validation system with 15+ validators
- JSONLogic-based conditional rendering
- Plugin system for custom components
Fixed #
- Conditional logic edge cases
- Validation message formatting
- Wizard navigation issues