Comments (12)
可以了解一下. 为什么没有使用标准的地区码. 而是使用031.032这种么?
至于为什么要int一下. 是在淘系的时候. 地区码都是 标准数字. 习惯性的初始化一下.
from city_pickers.
第三方SDK那边提供的数据源,是0开头的
from city_pickers.
可以对此问题修复一下吗?String才适合更多情况吧,没必要强制使用标准地址码
from city_pickers.
让我想想. 怎么小范围改动. 适配你这种情况
from city_pickers.
好的,感谢
from city_pickers.
有一个非常lowb的办法. 在注入meta的时候, 为每一个id前加入"1",
如:
转化前
{
"0031": "上海市",
"0053": "云南省"
}
转化后
{
"10031": "上海市",
"10053": "云南省"
}
出来结果的时候. 把"1' 去掉
from city_pickers.
这个最开始有想到,APP层还涉及到数据回显,改动就会比较多。
也考虑到在后端去修改数据源,但因为是第三方的数据源,就尽量没有去动这个数据。
在插件内部去进行id左边加1的操作,会不会更好一点~ 对使用者是无感的
或者直接去掉转int的操作吧~
from city_pickers.
本地看了一下. 改动还是比较大的. 端午前后修复过下. 看如何安全改造.
from city_pickers.
选择上海,南京这些都会挂掉
出现异常。
_AssertionError ('package:flutter/src/rendering/object.dart': Failed assertion: line 2708 pos 12: '!_debugDisposed': is not true.)
from city_pickers.
本地看了一下. 改动还是比较大的. 端午前后修复过下. 看如何安全改造.
hello,进展如何
from city_pickers.
看了一下. 改成成本略高. 不太敢动. 欢迎提PR~~解决
from city_pickers.
最后审视了一下. 还是觉得完成这个改造了. 使用int在中间做key有点傻.
from city_pickers.
Related Issues (20)
- 可以修改 APPbar 吗? 想在顶部导航栏右侧增加个按钮 HOT 8
- 现在版本都1.0.1了,使用里面还是0.0.1,走了很多弯路 HOT 2
- 怎么讲选中的那个黑色背景设置为透明 HOT 2
- 重庆城区跑到S下面去了 HOT 1
- 海外国家地区没有吗
- #bug 。 选择省份后,立马快速滑动城市,报错并且卡死。 HOT 10
- #bug。切换省份后立即滑动城市,城市显示还是上一个省份的城市。如图。 HOT 8
- 可以自己添加网络请求吗? HOT 1
- 编译报错 HOT 9
- 希望更新行政区划数据
- Breaks on latest flutter stable due to use of deprecated property.
- Support for flutter 3.10.0? HOT 3
- 带首字母定位的城市选择器,在单击右侧字母时,浮窗显示的字母无法消失 HOT 1
- 使用city_pickers插件在手机android上启动项目报错了,试了很多办法都没解决
- 3.10适配问题 HOT 1
- Build failed with an exception. HOT 4
- ios三级级联选择的时候,上一级的值改变后,下一级的初始值不是默认第一个
- 城市滚动切换的时候,能否增加回调获取当前选中的城市? HOT 1
- 某个省、某个市、某个区等文字太长,自动变小问题 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 city_pickers.