You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error detected when I'm trying to reset the field when is defined as disabled. I'm trying to reset the field because occasionally the user already interacted with it, and it keeps the error message, it's an attempt to clean this message.
It happens on "didChange", "reset" e others.
Example code:
constFastSwitch(
name:'switch',
adaptive:true,
titleText:'Disable text field',
),
constSizedBox(
height:8,
),
FastTextField(
name:'name',
autovalidateMode:AutovalidateMode.onUserInteraction,
validator: (value) => (value ==null|| value.isEmpty)
?'Please enter some text':null,
decoration:constInputDecoration(
labelText:'Name',
border:OutlineInputBorder(),
),
conditions: {
(isMet, field) {
field.enabled =!isMet;
field.reset(); // Here
}:FastConditionList(
[
FastCondition(
target:'switch',
test: (value, fieldDad) {
final result = value isbool&& value;
return result;
},
),
],
),
},
),
Error detected when I'm trying to reset the field when is defined as disabled. I'm trying to reset the field because occasionally the user already interacted with it, and it keeps the error message, it's an attempt to clean this message.
It happens on "didChange", "reset" e others.
Example code:
Error:
The text was updated successfully, but these errors were encountered: