From c4db788bcfa68733bf62609d27c4bfb8fb543d10 Mon Sep 17 00:00:00 2001 From: Matej Valenta Date: Thu, 21 Nov 2024 12:02:25 +0100 Subject: [PATCH] fix: use valueTransform even when textEditingController is in use --- glade_forms/lib/src/core/glade_input.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glade_forms/lib/src/core/glade_input.dart b/glade_forms/lib/src/core/glade_input.dart index 675c2c0..905a720 100644 --- a/glade_forms/lib/src/core/glade_input.dart +++ b/glade_forms/lib/src/core/glade_input.dart @@ -659,7 +659,7 @@ class GladeInput { void _setValue(T value, {required bool shouldTriggerOnChange}) { _previousValue = _value; - _value = _useTextEditingController ? value : (_valueTransform?.call(value) ?? value); + _value = _valueTransform?.call(value) ?? value; _isPure = false; __conversionError = null;