uae_city_areas 1.0.1
uae_city_areas: ^1.0.1 copied to clipboard
A Flutter plugin for fetching cities/emirates and areas from UAE API with persistent caching support.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.0 #
Added #
- Initial release
UAECityAreasPluginstatic API for fetching cities and areasCitymodel with id, name, and nameArabic fieldsAreamodel with id, name, and emirateId fields- Persistent storage caching using
shared_preferences - Force refresh option to bypass cache
- Error handling with custom exceptions
- Example Flutter app with city and area dropdowns
- Cache management:
clearCache,clearCitiesCache,clearAreasCache - Optional logging via
UAECityAreasPlugin.loggingEnabled
Features #
- Fetch cities/emirates via
UAECityAreasPlugin.getCities() - Fetch areas via
UAECityAreasPlugin.getAreasByCityId()andgetAreasByCity() - Persistent cache that survives app restarts
- Offline support with cached data
- Simple static API, no object creation required