Comments (5)
Oh that's true I'll work on that for the next update. Big thanks π
from intl_phone_number_input.
On the latest version of the package you can now pass a TextEditingController as a parameter.
To set/change the value of the textField you could always do
setState(){
_yourControllerReference.text = 'what ever value you want set'
}
Don't Forget to set your controller reference on the highlighted argument
InternationalPhoneNumberInput({
Key key,
@required this.onInputChanged,
this.onInputValidated,
this.focusNode,
**this.textFieldController,**
this.onSubmit,
this.keyboardAction,
this.countries,
this.inputBorder,
this.inputDecoration,
this.initialCountry2LetterCode = 'NG',
this.hintText = '(800) 000-0001 23',
this.shouldParse = true,
this.shouldValidate = true,
this.formatInput = true,
this.errorMessage = 'Invalid phone number',
})
I hope this help
from intl_phone_number_input.
On the latest version of the package you can now pass a TextEditingController as a parameter.
To set/change the value of the textField you could always do
setState(){ _yourControllerReference.text = 'what ever value you want set' }
Don't Forget to set your controller reference on the highlighted argument
InternationalPhoneNumberInput({ Key key, @required this.onInputChanged, this.onInputValidated, this.focusNode, **this.textFieldController,** this.onSubmit, this.keyboardAction, this.countries, this.inputBorder, this.inputDecoration, this.initialCountry2LetterCode = 'NG', this.hintText = '(800) 000-0001 23', this.shouldParse = true, this.shouldValidate = true, this.formatInput = true, this.errorMessage = 'Invalid phone number', })
I hope this help
Yeah I know that, but the thing is when you doing that the format of phone number in text field is broken
from intl_phone_number_input.
Thank you.
from intl_phone_number_input.
Hi @dungnv2602 I've just made changes and push the update. You can now upgrade your dart package
from intl_phone_number_input.
Related Issues (20)
- isoCode: 'MA' validators accept only 06 prefix !
- Allow Usage of ISO Codes Instead of Country Logos in the Leading of Input Field
- Version soloving failed
- Material 3 SubTitle Style is Deprecated . can you please change as per the Material 3 and Make a Release HOT 2
- Change the type of initCountry to String
- validatorMessage doesnt appear if is different of AutovalidateMode.always or doesnt triggered onChanged
- Not compatible with xcode 15 phonenumberkit deployment target 12 HOT 8
- Add Korean Translation Support
- PROJECT STILL ACTIVE?? kindly update please
- Programmatically change selected country code, or fill fields (flag and text input) using PhoneNumber
- selector customization needed HOT 1
- I
- IOS error : Compiling for iOS 11.0, but module 'PhoneNumberKit' has a minimum deployment target of iOS 12.0:
- In IOS, white backgroud while selecting coundtry code
- search dialog need to customize the search field style
- include curaçao
- flag with initial country code width
- Bum js version HOT 1
- Support for +993 71 123456 Phone Numbers (Turkmenistan)
- validator is not triggered on _formKey.currentState!.validate()
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 intl_phone_number_input.