颤音电话号码 - intl_phone_number软件包
InternationalPhoneNumberInput(
onInputChanged: onInputChanged,
cursorColor: kDarkGreyColor,
initialValue: phoneNumber, //+961 or 961
hintText: 'Phone Number',
...
我想将标志选择器的初始值设置为我的国家+961 但是初始值不起作用?如何设置初始值country代码
InternationalPhoneNumberInput(
onInputChanged: onInputChanged,
cursorColor: kDarkGreyColor,
initialValue: phoneNumber, //+961 or 961
hintText: 'Phone Number',
...
I want to set the initial value of the flag selector to my country +961
However initial value is not working? How do i set the initial value country code
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
它的工作如下
...
it worked as follows
...
当您创建电话号码时,添加一个ISO代码如下
When you create a phone number add an Iso code like the following
在 @lou的答案中增加了价值,您可以设置与手机当前区域相对应的起始国家。
有关更多信息,请访问 https://github.com/natintosh/natintosh/intl_natintl_natintl_natl_number_inumber_inumber_input/155
Value addition in @Lou's answer, You can set a starting country that corresponds to the current region of the phone.
For more information check at https://github.com/natintosh/intl_phone_number_input/issues/155