flutter_smart_forms 1.0.2
flutter_smart_forms: ^1.0.2 copied to clipboard
A powerful reactive JSON-driven form builder for Flutter with validation, async validation, conditional fields, dynamic UI, file upload, image upload, nested arrays, and extensible architecture.
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.
1.0.2 #
Added #
- New
SmartFormStepperwidget for multi-step forms with dynamic section titles and navigation. - Support for displaying step titles alongside numbers with proper ellipsis handling for long titles.
- Added JSON configuration support for stepper colors, text colors, spacing, and border radius.
- Support for
onTapnavigation between steps inSmartFormStepper. - Enhanced
JsonFormBuilderhelper to convert JSON sections directly intoFormSectionModel. - Added
maxWidthconstraints for step titles to improve UI on small screens. - Stepper now fully respects
disabledstate viaFieldExtra. - Added
submitandnext/backbutton customization throughextraproperties.
Fixed #
- Fixed issue where stepper only displayed numbers (1, 2, 3…) and ignored section titles.
- Fixed overflow issues in stepper header when titles are too long.
- Fixed color inconsistencies for active, inactive, and completed steps.
- Fixed reactivity issues when switching steps dynamically.
Changed #
- Updated
SmartFormStepperto useConstrainedBoxfor step titles to prevent layout break. - Improved
FieldExtrausage for default colors and padding in stepper and navigation buttons. - Refined UI layout and spacing for stepper header, field sections, and navigation buttons.
- Minor performance improvements in stepper rendering.
1.0.1 #
Added #
-
Reactive architecture improvements using
ValueListenableBuilderacross field widgets. -
Improved
FieldExtrahelper usage for safer access toextraconfiguration values. -
Enhanced controller synchronization for dynamic fields like
SmartArrayField. -
New configuration options for multiple fields including spacing, padding, and styling through JSON.
-
Improved internal utilities including:
ColorParserConditionEvaluatorImageHelperIconMapper
Fixed #
- Fixed
setState() or markNeedsBuild() called during buildissue inSmartArrayFieldby deferring controller updates usingWidgetsBinding.instance.addPostFrameCallback. - Fixed reactivity issues where some fields were not rebuilding when form values changed.
- Fixed margin/padding inconsistencies when parsing layout properties from JSON.
- Fixed conditional visibility edge cases for nested fields.
Changed #
-
Updated several fields to use the latest reactive architecture:
SmartCheckboxFieldSmartSignatureFieldSmartArrayFieldSmartOtpField
-
Improved handling of
disabledandreadOnlystates across all field types. -
Updated field rendering to consistently respect
ConditionEvaluatorfor visibility and enable rules. -
Improved UI consistency and theming support for dynamic fields.
1.0.0 #
Added #
-
Initial release of
flutter_smart_forms. -
Fully reactive, JSON-driven form builder for Flutter.
-
Support for conditional visibility (
showIf,hideIf) and enable/disable rules (enableIf). -
Built-in validation and async validation support.
-
Reactive updates for form fields when JSON or
FieldModelchanges. -
Nested array fields and complex field hierarchies.
-
Common field types:
SmartTextFieldSmartEmailFieldSmartPasswordFieldSmartPhoneFieldSmartDateFieldSmartOtpFieldSmartBarcodeFieldSmartDropdownFieldSmartCheckboxFieldSmartFileUploadFieldSmartImageUploadFieldSmartSuggestionFieldSmartSignatureFieldSmartArrayField
-
Reactive visibility updates with
ReactiveVisibilitywrapper. -
Customizable field styles and spacing.
-
Form submission handling with loading state.
-
Support for
onSubmitcallback with current form values. -
Scrollable forms with keyboard dismissal.
-
Optional
formKeyfor external validation handling. -
Easily extensible for custom fields.
Fixed #
- N/A (Initial release)
Changed #
- N/A (Initial release)
