Comments (3)
@themisir If i pass this
final FormFieldValidator? validator;
with this, It works.
final dynamic validator;
from form-validator.
perhaps can change the type to
final FormFieldValidator<String>? validator;
from form-validator.
@themisir If i pass this
final FormFieldValidator? validator;with this, It works.
final dynamic validator;
Note that in every example given for this library, the .build()
method is always called at the end of a validation chain. This method has the following shape:
String? Function(String?) build()
which is the same shape as the TextFormField's validator parameter.
You should change your prop from:
final FormFieldValidator? validator;
to:
final String? Function(String?)? validator;
from form-validator.
Related Issues (20)
- Splitting required into notBlank and notNull HOT 1
- email validator pass 'test@test ' HOT 1
- url method documentation typo HOT 1
- Adding null safety? HOT 3
- Required not working
- Is there any way to get validation as bool? HOT 4
- PatternValidator's pattern param should be type of `String` rather than `Pattern`, which is ambiguous HOT 1
- Leverage validators package instead of writing our own regexp HOT 4
- Add isEmpty on required string HOT 2
- using `required()` on an `optional` field does nothing
- Always required HOT 1
- Double can be null but less then some double value in TextFormField. HOT 1
- form_validator v2.0.0 HOT 4
- Add a method to add locale to the supported list (instead of using the globalLocale HOT 1
- Passing the data in the text editing controller to the validation builder custom extension HOT 2
- Number input validator
- Add DropdownButtonFormField Support HOT 1
- How to add a prefix? HOT 3
- Adding new rules with custom i18n error message HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from form-validator.