zzy_city_picker 0.0.2 copy "zzy_city_picker: ^0.0.2" to clipboard
zzy_city_picker: ^0.0.2 copied to clipboard

这是一个中国人用的城市选择器

zzy_city_picker #

简介 #

这是一个,中国大陆用户使用的城市选择器,提供三种选择方式,选择省份,选择省市,选择省市区

摘要 #


final result = await ZzyCityPicker.showPicker(context, currentResult: selected, type: ZzyCityPickerType.p);
if (result != null) {
    setState(() {
      selected = result;
    });
}


用法 #

//选择省
ZzyCityPicker.showPicker(context, currentResult: selected, type: ZzyCityPickerType.p);

//选择省市
ZzyCityPicker.showPicker(context, currentResult: selected, type: ZzyCityPickerType.pc);


//选择省市区(type 默认值为 ZzyCityPickerType.pca,所以选择省市区的时候,可以传type)
ZzyCityPicker.showPicker(context, currentResult: selected);

1
likes
125
points
29
downloads

Publisher

unverified uploader

Weekly Downloads

这是一个中国人用的城市选择器

Homepage

Documentation

API reference

License

BSD-2-Clause (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface

More

Packages that depend on zzy_city_picker