city_pickers 0.1.1 city_pickers: ^0.1.1 copied to clipboard
Flutter plugin for city picker, Popups widgets, call by function, supoort china areas for the moment.
city_pickers #
this is china area selector.
Demo #
Getting Started #
In your flutter project add the dependency:
dependencies:
...
city_pickers:^0.0.1
For help getting started with Flutter, view the online documentation.
Usage example #
Import city_pickers.dart
import 'package:city_pickers/city_pickers.dart';
Demo code to show selector
Result result = await CityPickers.showCityPicker(
context: context,
);
CityPickers attributes #
Name | Type | Desc |
---|---|---|
showCityPicker | Function | the handle show selector |
showCityPicker params #
Name | Type | Default | Desc |
---|---|---|---|
context | BuildContext | null | context |
locationCode | String | 110000 | initial location |
height | double | 300 | container height |
Date Statement #
The data information come from National Bureau of Statistics