flutter 插件city_pickers


中国的城市三级联动选择器

添加依赖

dependencies:
  ...
    city_pickers:^0.0.1

导入

import 'package:city_pickers/city_pickers.dart';

使用方法

...
// type 1
Result result = await CityPickers.showCityPicker(
  context: context,
);
// type 2
Result result2 = await CityPickers.showFullPageCityPicker(
  context: context,
);