From e27523183224ed0a73fc20272696c84b6997c5b3 Mon Sep 17 00:00:00 2001 From: Jacques Date: Tue, 6 Feb 2024 13:24:17 +0100 Subject: [PATCH] fix: Update flutter_input_library version --- CHANGELOG.md | 5 ++++- example/pubspec.lock | 8 ++++---- .../input/input_types/input_switch/input_switch.dart | 3 ++- pubspec.yaml | 4 ++-- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 19954d7..231f601 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -111,4 +111,7 @@ - Pass on the `textCapitalization` property to FlutterFormPlainText and FlutterFormMultiLine ## 6.2.1 - January 12th 2024 -- Pass on the `initialValue` property to FlutterFormMultiLine \ No newline at end of file +- Pass on the `initialValue` property to FlutterFormMultiLine + +## 6.2.2 - February 6th 2024 +- Updated the `flutter_input_library` from 2.6.0 to 3.0.0 \ No newline at end of file diff --git a/example/pubspec.lock b/example/pubspec.lock index f9df894..74949db 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -68,16 +68,16 @@ packages: path: ".." relative: true source: path - version: "6.2.0" + version: "6.2.1" flutter_input_library: dependency: transitive description: path: "." - ref: "2.6.0" - resolved-ref: "6ae18d09bb06098bd2789a77190f2326c260ee98" + ref: "3.0.0" + resolved-ref: "7024fb7e404fbeae0331bfe8f7c115283d0951ce" url: "https://github.com/Iconica-Development/flutter_input_library" source: git - version: "2.6.0" + version: "3.0.0" flutter_lints: dependency: "direct dev" description: diff --git a/lib/src/widgets/input/input_types/input_switch/input_switch.dart b/lib/src/widgets/input/input_types/input_switch/input_switch.dart index 915a3ad..d351c9d 100644 --- a/lib/src/widgets/input/input_types/input_switch/input_switch.dart +++ b/lib/src/widgets/input/input_types/input_switch/input_switch.dart @@ -27,12 +27,13 @@ class FlutterFormInputSwitch extends FlutterFormInputWidget { super.registerController(context); - return input.FlutterFormInputSwitch( + return input.FlutterFormInputBool( focusNode: focusNode, onSaved: (value) => controller.onSaved(value), onChanged: controller.onChanged, validator: (value) => controller.onValidate(value, _), initialValue: controller.value ?? false, + widgetType: input.BoolWidgetType.switchWidget, ); } } diff --git a/pubspec.yaml b/pubspec.yaml index d402c63..268af89 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_form_wizard description: A new Flutter package project. -version: 6.2.1 +version: 6.2.2 homepage: https://github.com/Iconica-Development/flutter_form_wizard publish_to: none @@ -18,7 +18,7 @@ dependencies: flutter_input_library: git: url: https://github.com/Iconica-Development/flutter_input_library - ref: 2.6.0 + ref: 3.0.0 dev_dependencies: flutter_test: