From 5e5dbe599524b2dc92c713af8f2ea360d8ff6a92 Mon Sep 17 00:00:00 2001 From: Alexandru Mariuti Date: Wed, 23 Oct 2024 09:51:50 +0100 Subject: [PATCH] fix: select initial values (#174) --- CHANGELOG.md | 4 ++++ lib/src/components/select.dart | 1 + pubspec.yaml | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6aa002e8..c401d659 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.13.5 + +- **FIX**: Fix `ShadSelect` initial values on widget creation. + ## 0.13.4+1 - **CHORE**: Update svg dependencies diff --git a/lib/src/components/select.dart b/lib/src/components/select.dart index 6dfad974..4331a071 100644 --- a/lib/src/components/select.dart +++ b/lib/src/components/select.dart @@ -462,6 +462,7 @@ class ShadSelectState extends State> { FocusNode? internalFocusNode; late final selectedValues = { if (widget.initialValue is T) widget.initialValue as T, + ...widget.initialValues, }; ShadPopoverController? _controller; diff --git a/pubspec.yaml b/pubspec.yaml index 3ddf65c5..b26b0f47 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: shadcn_ui description: shadcn-ui ported in Flutter. Awesome UI components for Flutter, fully customizable. -version: 0.13.4+1 +version: 0.13.5 homepage: https://flutter-shadcn-ui.mariuti.com repository: https://github.com/nank1ro/flutter-shadcn-ui documentation: https://flutter-shadcn-ui.mariuti.com