city_pickers
1.3.0, released 3 years ago by an unverified publisher
China city picker plugin supporting multi-column linkage and alphabetical index selection.
What it does
CityPickers is a Flutter plugin providing city and region selection widgets for China. It supports bottom sheet pickers, full-page pickers, and alphabetic list selectors with search functionality and customizable themes.
AI-written summary of version 1.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to build a location or city selection flow for Chinese addresses in a Flutter app.
- You want popup or full-page multi-level cascading dropdowns for province, city, and district data.
Skip it when
- Your application targets regions outside of China where standardized national statistical region codes are not applicable.
Strengths
- Supports multiple display modes including bottom sheet, full-page, and alphabetical selector.
- Provides built-in utils to lookup area results by region codes.
- Supports customizable themes, widgets, and search functionality.
Weaknesses
- Focused primarily on Chinese administrative divisions.
- Documentation is mostly in Chinese.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Add the dependency to pubspec.yaml and import city_pickers.dart.
import 'package:city_pickers/city_pickers.dart';
Future<Result?> getResult(BuildContext context) async {
Result? result = await CityPickers.showCityPicker(
context: context,
);
return result;
}Alternatives
Packages that do the same job and could replace city_pickers.
- flutter_city_picker
Flutter plugin for city and address pickers with customizable popups.
44Compare - date_field
A form field widget for picking dates and times with adaptive Material and Cupertino dialogs
75Compare - countrify
Country, state, and city picker with 250 countries and phone input fields.
62Compare
Works with
Packages commonly used together with city_pickers: ones it builds on, ones built on it, and its own family.