Comments (7)
TextEditingController controller = TextEditingController();
InternationalPhoneNumberInput( inputBorder: InputBorder.none, maxLength: Platform.isAndroid? 12 : 20, onInputChanged: (PhoneNumber number) { userDetail.phoneNumber = number.phoneNumber.toString(); controller.selection = TextSelection.collapsed(offset: controller.text.length); }, textFieldController: controller, formatInput: true, )
can you try doing something like this? i don't have IOS on me right now.. try it and let me know if it worked for you
from intl_phone_number_input.
Encountering the same issue, adding the below line helped me
InternationalPhoneNumberInput(
....
onInputChanged: (PhoneNumber value) {
_phoneNumberController.selection = TextSelection.collapsed(offset: _phoneNumberController.text.length);
}
);
from intl_phone_number_input.
The issue is originating from utils/formatter/as_you_type_formatter.dart Line 86:
TextEditingValue( text: parsedText, selection: TextSelection.collapsed(offset: parsedText.length), )
It is possible to solve it by replacing selection to this:
selection: TextSelection.collapsed(offset: parsedText.length)
If this doesn't break somewhere else, please somebody commit this to codebase, thanks.
from intl_phone_number_input.
This just happened to our clients yesterday, can any one please address the issue
from intl_phone_number_input.
I was told the above code worked on iPhone 11 Pro max..
from intl_phone_number_input.
This is new on the new version, it's coming with the update to the PhoneNumberKit on iOS from libphonenumber-iOS
from intl_phone_number_input.
In onInputChanged
method, add the following line
numCont.selection = TextSelection.collapsed(offset: numCont.text.length);
and numCont
is your own TextEditingController
.
Here is the full code:
onInputChanged: (PhoneNumber number) {
numCont.selection = TextSelection.collapsed(offset: numCont.text.length);
},
from intl_phone_number_input.
Related Issues (20)
- 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
- Bum js version HOT 1
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.