uae_city_areas 1.0.0+1 copy "uae_city_areas: ^1.0.0+1" to clipboard
uae_city_areas: ^1.0.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+1 - 2025-02-07 #

Added #

  • Initial release to pub.dev

1.0.0 2024-01-XX #

Added #

  • Initial release
  • CitiesAreasService class 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
  • Optional cache TTL (time-to-live) support
  • Error handling with custom exceptions
  • Example Flutter app demonstrating usage
  • Support for custom base URL and headers
  • Cache management methods (clearCache, clearCitiesCache, clearAreasCache)

Features #

  • Fetch cities/emirates from /api/geoemirates/get
  • Fetch areas from /api/geoemirates/GetAreasByEmirateId/{id}
  • Persistent cache that survives app restarts
  • Offline support with cached data
  • Simple and intuitive API
3
likes
160
points
6
downloads

Documentation

API reference

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

License

MIT (license)

Dependencies

flutter, http, shared_preferences

More

Packages that depend on uae_city_areas