Comments (8)
Hi @natintosh,
I agree with @guyzk 's suggestion to use a TextFormField since phone number input fields are usually used as part of a larger form. Is there any chance this would could be rolled into the next release?
As general feedback, I really appreciate all the great work. I like how you're exposing the InputDecoration for the TextField because it allows for more control over the form appearance. I am noting that, since the InputDecoration passed into InternationalPhoneNumberInput overrides the InputBorder and hintText constructor parameters, it could be confusing to include both. Might these be marked as Deprecated for future use since this is handled already by InputDecoration?
from intl_phone_number_input.
@natintosh any update on whether any of the requests are planned to be implemented in the near future?
Hi @guyzk, I'm totally working on it it just that I've been busy with office work the last update I add PhoneNumber object that you reference and I currently have a local branch that have fixes to issues you raised except the AR localization
from intl_phone_number_input.
Return phone number object which will return both the phone number and the country code and maybe the ISO code.
I like this idea rather than returning string of phone number, country code and country 2 letter code, I'll pass a single Object that contains all this
Please provide a way to style the input text.
You could always style the text field with either of this two constructor
InternationalPhoneNumberInput.withCustomDecoration
InternationalPhoneNumberInput.withCustomBorder
When an error text is provided the country code is not center aligned with the phone input which gives it an unprofessional look.
Help needed on this I need further information on this
The validation is not forwarded to the form so if the phone input is invalid (especially when there is more than 1 phone input) it is not reflected in the form validation (form will remain valid even if phone input is invalid).
Do you mean a Form validation as in TextFormField validation
Better support for RTL apps (my apps have several languages supported, some of which are RTL.
I'll look into this
Thanks for your feedback @guyzk πππ
from intl_phone_number_input.
Thanks for the quick response!
I like this idea rather than returning string of phone number, country code and country 2 letter code, I'll pass a single Object that contains all this
Great! Maybe you could pass this object also in the "onSubmit" function.
When an error text is provided the country code is not center aligned with the phone input which gives it an unprofessional look.
Help needed on this I need further information on this
I think in the row that contains the dropdown and the input widget you should add the following:
crossAxisAlignment: CrossAxisAlignment.start,
You could always style the text field with either of this two constructor
InternationalPhoneNumberInput.withCustomDecoration
InternationalPhoneNumberInput.withCustomBorder
The text in the input widget it not in the decoration object but as a "style" attribute in the TextField (or TextFormField). This will require you to add another attribute ("textStyle"?) which will be passed to the TextField widget.
Do you mean a Form validation as in TextFormField validation
Yes! I think it will be best to change to a TextFormField (you will have the "validator" attribute) and have the validation passed to the parenting form.
from intl_phone_number_input.
@natintosh any update on whether any of the requests are planned to be implemented in the near future?
from intl_phone_number_input.
since the InputDecoration passed into InternationalPhoneNumberInput overrides the InputBorder and hintText constructor parameters, it could be confusing to include both. Might these be marked as Deprecated for future use since this is handled already by InputDecoration?
Oh it took a while for me to understand what you were trying to say here you are right but I can't mark it as deprecated because I'm currently exposing a constructor called with withCustomDecoration that does't accept hintText. I think I need to find a way to hide that from the the default constructor
from intl_phone_number_input.
Thanks for the update.
The RTL issue is really killing me so that I am not able to use the package at the moment.
from intl_phone_number_input.
Posted a solution for the RTL issue in the following issue
#16
Closing this one as all other features have been implemented
Thanks!!
from intl_phone_number_input.
Related Issues (20)
- validator .. needs refactoring
- mobile number is incorrect HOT 2
- Get Phone Detail from contact list
- 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
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.