From 5b64f28ff6f173513b72b4003e34acc0c1fb680f Mon Sep 17 00:00:00 2001 From: Crazelu Date: Tue, 16 Jun 2026 14:00:46 +0100 Subject: [PATCH 1/5] chore: remove FormState.multiScreen constructor --- lib/src/components/form/form.dart | 2 +- lib/src/form/state.dart | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/src/components/form/form.dart b/lib/src/components/form/form.dart index ce269d4..0f756f8 100644 --- a/lib/src/components/form/form.dart +++ b/lib/src/components/form/form.dart @@ -18,7 +18,7 @@ class Form extends StatelessComponent { /// Creates a [Form] configured for multi-screen navigation. /// Each config is shown on its own screen with Back/Next buttons. - /// Requires [FormState.multiScreen] to be used as the state. + /// Requires [MultiScreenFormState] to be used as the state. const factory Form.multiScreen({ Key? key, required MultiScreenFormState state, diff --git a/lib/src/form/state.dart b/lib/src/form/state.dart index f47b020..97a56e5 100644 --- a/lib/src/form/state.dart +++ b/lib/src/form/state.dart @@ -11,10 +11,6 @@ class FormState { _updateState(); } - /// Creates a [FormState] configured for a multi-screen `Form`. - factory FormState.multiScreen(List configValues) = - MultiScreenFormState; - /// Configurations used to initialize this state. final List _configValues; From 0d81ec4cdbf9e0a6c5cd6ec63797f9a31b950513 Mon Sep 17 00:00:00 2001 From: Crazelu Date: Tue, 16 Jun 2026 14:01:32 +0100 Subject: [PATCH 2/5] fix: remove excessive whitespace from multi screen summary UI --- lib/src/components/form/multi_screen_form.dart | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/src/components/form/multi_screen_form.dart b/lib/src/components/form/multi_screen_form.dart index 5675b9e..cc30943 100644 --- a/lib/src/components/form/multi_screen_form.dart +++ b/lib/src/components/form/multi_screen_form.dart @@ -168,13 +168,8 @@ class _SummaryScreen extends StatelessComponent { child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - const SizedBox(height: 1), for (final config in configs) - _SummaryItem( - state: state, - config: config, - ), - const SizedBox(height: 1), + _SummaryItem(state: state, config: config), if (description case String description) ...[ const SizedBox(height: 1), Text( From d65249a1e28131b7ff37d1a9a2931c5f0c954586 Mon Sep 17 00:00:00 2001 From: Crazelu Date: Tue, 16 Jun 2026 14:02:17 +0100 Subject: [PATCH 3/5] fix: add right padding to multi screen navigation buttons for a better look on most terminals --- lib/src/components/form/multi_screen_form.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/components/form/multi_screen_form.dart b/lib/src/components/form/multi_screen_form.dart index cc30943..b8f4bae 100644 --- a/lib/src/components/form/multi_screen_form.dart +++ b/lib/src/components/form/multi_screen_form.dart @@ -135,6 +135,7 @@ class _MultiScreenNavigationButtons extends StatelessComponent { }, focused: state.focusOnButton && state.focusedButtonIndex == 1, ), + const SizedBox(width: 1), ], ), ); From 70b914f633dd6b4d281217568723e564d33a69cd Mon Sep 17 00:00:00 2001 From: Crazelu Date: Tue, 16 Jun 2026 14:07:26 +0100 Subject: [PATCH 4/5] chore: bump version and update changelog --- CHANGELOG.md | 6 ++++++ pubspec.yaml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 139e522..cc0eb35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 0.3.1 + +- **FIX**: Removed excessive whitespace from multi screen form summary. +- **FIX**: Added right padding to multi screen form navigation buttons. +- **CHORE**: Removed `FormState.multiScreen` constructor which did not enforce the requirement of `MultiScreenFormState` by `Form.multiScreen`. + ## 0.3.0 - **FEAT**: Added multi screen form support. diff --git a/pubspec.yaml b/pubspec.yaml index ed93e89..9c7b1f2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: serverpod_tui description: A collection of tools for building terminal user interfaces. -version: 0.3.0 +version: 0.3.1 repository: https://github.com/serverpod/serverpod_tui homepage: https://serverpod.dev issue_tracker: https://github.com/serverpod/serverpod_tui/issues From a77e5e0ec60907272c518188b982010acfad328d Mon Sep 17 00:00:00 2001 From: Crazelu Date: Tue, 16 Jun 2026 14:38:45 +0100 Subject: [PATCH 5/5] chore: bump version to 0.4.0 --- CHANGELOG.md | 4 ++-- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cc0eb35..ab7b130 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,8 @@ -## 0.3.1 +## 0.4.0 - **FIX**: Removed excessive whitespace from multi screen form summary. - **FIX**: Added right padding to multi screen form navigation buttons. -- **CHORE**: Removed `FormState.multiScreen` constructor which did not enforce the requirement of `MultiScreenFormState` by `Form.multiScreen`. +- **FIX**: Removed `FormState.multiScreen` constructor which did not enforce the requirement of `MultiScreenFormState` by `Form.multiScreen`. ## 0.3.0 diff --git a/pubspec.yaml b/pubspec.yaml index 9c7b1f2..b32bdf7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: serverpod_tui description: A collection of tools for building terminal user interfaces. -version: 0.3.1 +version: 0.4.0 repository: https://github.com/serverpod/serverpod_tui homepage: https://serverpod.dev issue_tracker: https://github.com/serverpod/serverpod_tui/issues