From 7d1fca1f8e14a46d8c28cd7fb52b01eb4d838e93 Mon Sep 17 00:00:00 2001 From: Kamil Sztandur Date: Mon, 21 Sep 2026 18:59:24 +0200 Subject: [PATCH] Release 0.2.2 Co-Authored-By: Claude Fable 5.1 --- CHANGELOG.md | 14 ++++++++------ example/pubspec.lock | 2 +- example/pubspec.yaml | 2 +- pubspec.yaml | 2 +- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f91b103..6aba5f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,11 @@ -## Unreleased - -* `setOptions(List)` 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 diff --git a/example/pubspec.lock b/example/pubspec.lock index b03053a..e68014f 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -15,7 +15,7 @@ packages: path: ".." relative: true source: path - version: "0.2.1+1" + version: "0.2.2" analyzer: dependency: transitive description: diff --git a/example/pubspec.yaml b/example/pubspec.yaml index d36d499..b6512b4 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -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" diff --git a/pubspec.yaml b/pubspec.yaml index a5425b5..785af7c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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