GithubHelp home page GithubHelp logo

jasonhezz / flutter_city_picker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from caijinglong/flutter_city_picker

0.0 1.0 0.0 179 KB

License: Apache License 2.0

Java 2.36% Objective-C 4.88% Dart 92.76%

flutter_city_picker's Introduction

city_picker

pub package

A city picker of china, **城市选择器

screenshot

图片

use

pubspec.yaml

latest_version: pub package

city_picker: $latest_version

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; // 地级市/县

init pick city

    CityResult result = await showCityPicker(context,
     initCity: CityResult()
       ..province = p1 // 省
       ..city = p2 // 市
       ..county = p3); // 地级市/县

城市数据

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

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

LICENSE

copyright apache 2.0 for caijinglong

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.