uae_city_areas 1.0.1 copy "uae_city_areas: ^1.0.1" to clipboard
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.1 #

Changed #

  • Documentation updated

1.0.0+1 #

Added #

  • Initial release to pub.dev

1.0.0 #

Added #

  • Initial release
  • UAECityAreasPlugin static API for fetching cities and areas
  • City model with id, name, and nameArabic fields
  • Area model 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() and getAreasByCity()
  • Persistent cache that survives app restarts
  • Offline support with cached data
  • Simple static API, no object creation required
3
likes
160
points
76
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for fetching cities/emirates and areas from UAE API with persistent caching support.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, http, shared_preferences

More

Packages that depend on uae_city_areas