A city picker of china, 中国城市选择器
CityResult result = await showCityPicker(context); String province = result?.province; // 省 String city = result?.city; // 市 String county = result?.county; // 地级市/县
init pick city
CityResult result = await showCityPicker(context, initCity: CityResult() ..province = p1 // 省 ..city = p2 // 市 ..county = p3); // 地级市/县
使用 json,数据来源为 python 爬虫爬取python_get_city_datas
真实数据来源国家统计局城乡划分 2018 版
copyright apache 2.0 for caijinglong
更新城市数据到 2018 版
更新 sdk 版本约束
A new Flutter project.
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
Add this to your package's pubspec.yaml file:
dependencies: city_picker: ^0.1.3
You can install packages from the command line:
$ flutter packages get
Alternatively, your editor might support
flutter packages get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|0.1.3||Feb 20, 2019|
|0.1.2||Feb 20, 2019|
|0.1.1||Jan 28, 2019|
|0.1.0||Jan 27, 2019|
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Feb 20, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.