Closed stact closed 1 year ago
@stact Are you importing requiredValidator
from reactive_forms
? That type has recently changed to a Validator
in the newer releases. So maybe your version of reactive_forms
is old? Mine is working with 16.0.2.
EDIT: Actually, I think you need to change your validator to RequiredValidator()
. I notice it is that in the example project, but maybe the docs have not yet been updated.
Hi @stact Check the example https://github.com/artflutter/reactive_forms_generator/blob/master/packages/reactive_forms_generator/example/lib/docs/login/login.dart#L23
README is a little bit outdated
@stact any feedback
updated the docs
Hi @stact! Your issue has been closed. If we were helpful don't forget to star the repo.
Please check our reactive_forms_widget package
We would appreciate sponsorship subscription or one time donation https://github.com/sponsors/artflutter
Hi @vasilich6107 sorry coming back from holidays :) it's better! Thank you!
I'm following the documentation to use the requiredValidator, but I've a mismatch with the type.
The element type 'Map<String, dynamic>? Function(AbstractControl<dynamic>)' can't be assigned to the list type 'Validator<String>'
Do you know what's changed? thank you! @vasilich6107