Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
## Unreleased

* `setOptions(List<V>)` on `AdvancedSingleSelectFieldController` and `AdvancedMultiSelectFieldController`: the list of options can change while the form is open. A selected value that is not on the new list is cleared as a program write (no user edit, no error on an untouched field); widgets rebuild even when the value stayed the same.
* The single-select controller now copies the `options` you pass, as the multi-select always did. `options` is an unmodifiable list on both.
* The Agent Skill is a [package skill](https://dart.dev/tools/pub/package-skills): `dart run skills@ get` installs it into your agent's skills folder. The folder moved from `skills/advanced_forms/` to `skills/advanced_forms-build-forms/`, the name the CLI requires; the skill now adds the package with `flutter pub add advanced_forms` when the project lacks it.
* Added `enabled` to `addSubform`: the section is attached only while the closure returns true, and keeps its values when it is not.
## 0.2.2

* Conditional sections in one line: `addSubform(invoice, enabled: () => needsInvoice.fieldValue)` attaches and detaches the section as the checkbox flips, and its values survive.
* Added `setOptions` to both select controllers, so the list of options can change while the form is open.
* The single-select controller now copies the `options` you pass, as the multi-select always did.
* The agent skill is a Dart package skill: `dart run skills@ get` installs it.
* Documented how a prefilled field can react to another field before the user touches it.
* The new logo on the website, the favicon and the README.

## 0.2.1+1

Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.2.1+1"
version: "0.2.2"
analyzer:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: advanced_forms_example
description: Gallery app for advanced_forms — one screen per documented form pattern.
publish_to: "none"
version: 0.2.1+1
version: 0.2.2

environment:
sdk: ">=3.3.0 <4.0.0"
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: advanced_forms
description: Flutter form validation and state management — typed controllers for text, checkbox, dropdown and multi-select fields, async and cross-field validators, and subforms.
version: 0.2.1+1
version: 0.2.2
homepage: https://github.com/leancodepl/advanced_forms
repository: https://github.com/leancodepl/advanced_forms
issue_tracker: https://github.com/leancodepl/advanced_forms/issues
Expand Down
Loading