flutter - 我在颤振 Web 应用程序中使用 country_code_picker 2.0.1。初始选择不起作用
问题描述
我在颤振 Web 应用程序中使用 country_code_picker 2.0.1。对于初始选择,我使用存储在数据库中的国家名称。不起作用。
CountryCodePicker(
onChanged: (CountryCode
countryCode) {
_countryOrigin = countryCode
.name
.toString();
},
alignLeft: true,
initialSelection:
result.countryOrigin ==
null
? ''
: result.countryOrigin
.substring(0, 2)
.toUpperCase()
.toString(),
favorite: [
'+65',
'+62',
'+86',
'+81',
'+66',
'+82',
'+1',
'+91',
],
showCountryOnly: true,
enabled: true,
showFlag: true,
showOnlyCountryWhenClosed:
true),
解决方案
推荐阅读
- windows-authentication - 模拟后验证 WinHttp 与远程服务器的连接时出现问题
- amazon-web-services - 无法在 AWS CloudWatch 日志中看到收到的消息
- python - Python 模块中的属性
- latex - 如何在 Latex 投影仪中配置最终帧?
- progressive-web-apps - 关闭我的 PWA 时,智能手机 UI 会将 webview 缩小为 Chrome 图标而不是 PWA 的图标……这只是我的 Android 设备吗?
- ruby - 如何使用 Capistrano 有条件地清理版本?
- python - h5py - 重塑数据集,如 numpy.reshape()
- xaml - 有没有更好的方法在 Xamarin Forms 上使用 XAML 绑定到 JObject?
- r - 从命令行调试 RMarkdown 文件
- javascript - 在对整个数组执行连接之前,如何对每个元素执行 encodeURI?