From efda4bb9b2d652ea2cb2275091cd94e90b19c129 Mon Sep 17 00:00:00 2001 From: Bugfix Jacques Date: Thu, 25 May 2023 10:39:37 +0200 Subject: [PATCH] fix: Date picker field now has unique key so new field has new value --- lib/src/inputs/date_picker/date_picker_field.dart | 2 +- pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/inputs/date_picker/date_picker_field.dart b/lib/src/inputs/date_picker/date_picker_field.dart index 99e60c2..0d62580 100644 --- a/lib/src/inputs/date_picker/date_picker_field.dart +++ b/lib/src/inputs/date_picker/date_picker_field.dart @@ -157,7 +157,7 @@ class _DateInputFieldState extends State { autovalidateMode: widget.autovalidateMode, keyboardType: TextInputType.none, readOnly: true, - key: Key(currentValue.toString()), + key: UniqueKey(), initialValue: currentValue.isEmpty ? widget.initialValue : currentValue, onSaved: (value) => widget.onSaved?.call(value), onTap: () async { diff --git a/pubspec.yaml b/pubspec.yaml index a89d1ad..59b6795 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_input_library description: A new Flutter package project. -version: 2.1.0 +version: 2.1.1 repository: https://github.com/Iconica-Development/flutter_input_library environment: