city_picker 0.1.0 copy "city_picker: ^0.1.0" to clipboard
city_picker: ^0.1.0 copied to clipboard

discontinued
outdated

chinese_city_picker

city_picker #

A city picker of china, 中国城市选择器

screenshot #

图片

use #

pubspec.yaml

city_picker: ^0.1.0

import

import 'package:city_picker/city_picker.dart';

use

    CityResult result = await showCityPicker(context);
    String province = result?.province; // 省
    String city = result?.city; // 市
    String county = result?.county; // 地级市/县

城市数据 #

使用 json,数据来源为爬虫爬取python_get_city_datas

真实数据来源国家统计局城乡划分2017版

LICENSE #

copyright apache 2.0 for caijinglong