flutter_map_cache 1.4.0 copy "flutter_map_cache: ^1.4.0" to clipboard
flutter_map_cache: ^1.4.0 copied to clipboard

A slim yet powerful caching plugin for flutter_map tile layers.

[1.4.0] 2024-01-24 #

  • Add dio as a parameter to CachedTileProvider. You're now able to provide and reuse your own Dio instance (Thanks to @PatrickWulfe).
  • Deprecate the dioOptions parameter. Prefer creating your own Dio instance and provide it to the dio parameter.
  • Update the README file (for example add isar to the list of supported storage backends).

[1.3.1] 2023-10-20 #

Remove exception from the console when tile requests get cancelled (see https://github.com/josxha/flutter_map_cache/issues/3).

[1.3.0] 2023-10-09 #

[1.2.0] 2023-06-28 #

CachedTileProvider

  • Add the List<Interceptor>? interceptors as a Parameter and remove the verbose parameter. The interceptors will get applied before the cache interceptor.
  • The store parameter is now required.
  • Add the option to override the hitCacheOnErrorExcept parameter. By default, a cached request will not get used if the server returns with status code 401 or 403.
  • Remove the dio parameter but set dio as a public field variable so that it can get modified after creation.
  • Add BaseOptions? dioOptions as a parameter.

Fixes

  • Use cache when device has no internet connection and a SocketException gets thrown.

[1.1.1] 2023-06-22 #

  • Update documentation and example project
  • Use the user agent header provided by the TileLayer

[1.1.0] 2023-06-09 #

  • Add maxStale and keyBuilder as optional parameters to CachedTileProvider:

[1.0.0] 2023-06-09 #

  • Initial version.