vietnam_provinces 2.0.0
vietnam_provinces: ^2.0.0 copied to clipboard
A Flutter package to manage Vietnam's provinces, districts, and wards. Supports both v1 (3-level) and v2 (2-level) administrative division structures.
2.0.0 #
- BREAKING CHANGE: Added support for both v1 (3-level) and v2 (2-level) administrative division structures.
- Added
AdministrativeDivisionVersionenum to specify the version (v1 or v2). - Updated
initialize()method to accept aversionparameter (defaults to v2). - Updated
Provincemodel to support bothdistricts(v1) andwards(v2) structures. - Updated
getWards()method to work with both versions:- v1: Requires both
provinceCodeanddistrictCode - v2: Requires only
provinceCode,districtCodeis optional
- v1: Requires both
- Added
provinces-v1.json.gzfor 3-level structure (before July 2025). - Added
provinces-v2.json.gzfor 2-level structure (from July 2025 onwards). - Updated example app to demonstrate both versions with a version switcher.
- Updated documentation with usage examples for both versions.
1.0.2 #
- Update documents.
- Optimize library size.
- Optimize package.
1.0.1 #
- Add Demo Gif
1.0.0 #
- Initial release.
- Features:
- Search provinces, districts, and wards by name or code.