shivanshtalwar0 / material_dropdown_formfield Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
The checking of value should be: if(value==null || value=='') return 'This field is required';
If the widget receives a new value it should call setState on it's new value and handle it internal so that the value that the validator receives is not null.
I will try to research this and help you, but in the mean time this is still an issue.
The problem seems to be here:
value: value == '' ? null : value,
onChanged: (dynamic newValue) {
state.didChange(newValue);
validator(newValue);
onChanged(newValue);
},
At first the value is '' but after I set the value to something it becomes 'something' but the onChangeMethod is not triggered with the newValue.
We have to find a way to force that trigger.
Hello, and thank you for this awesome widget.
I think I have found a bug in it's functionality. The moment i received a value from a provider, it is getting set, it shows on the screen, but when i call the validate method it the value is null.
I think I know why this is happening. It is because the widget if it gets an initial value should also call onChange method.
I think that this issue is handled by the developer of dropdown_formfield by adding it as a field that you can add.
If there is anymore help i can provide, please do ask.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.