Skip to content

Latest commit

 

History

History
82 lines (53 loc) · 1.98 KB

README-en.md

File metadata and controls

82 lines (53 loc) · 1.98 KB

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
showFullPageCityPicker Function the handle show full screen selector

showCityPicker params

Name Type Default Desc
context BuildContext null context
theme ThemeData Theme.of(context) theme
locationCode String 110000 initial location
height double 300 container height
showType ShowType ShowType.pca selector show type
barrierOpacity double 0.5 pop modal opacity
barrierDismissible bool true dismiss this route by tapping the modal barrier

showFullPageCityPicker params

Name Type Default Desc
context BuildContext null context
theme ThemeData Theme.of(context) theme
locationCode String 110000 initial location
showType ShowType ShowType.pca selector show type

contributors

Date Statement

The data information comes from National Bureau of Statistics

Statement

This project's example code and style, reference withFlutter Go, flutter go help developers get started quickly Flutter