π world_csc_picker
A lightweight and customizable Flutter widget for cascading Country β State/Province β City selection, using globally updated city data from a local JSON file.
!
β¨ Features
- π¦ Offline Support β Uses a bundled
worldcities.json
file, so no API call or internet access is needed - π Cascading Dropdowns β Country selection filters available States, which in turn filters Cities
- β‘ Zero Dependencies β Built using pure Flutter without third-party packages
- π§© Flexible Integration β Easily embeds into forms, registration flows, or profile pages
- π Dynamic Events β Provides real-time callbacks when the country, state, or city changes
- π― Efficient Filtering β Built-in optimization for large datasets (100,000+ cities)
π· Preview
Hereβs how the picker looks in a typical Flutter app:
π Installation
- Add the package to your
pubspec.yaml
file:
dependencies:
world_csc_picker: ^0.0.3