flutter_map_cache 1.2.0
flutter_map_cache: ^1.2.0 copied to clipboard
A slim yet powerful caching plugin for flutter_map tile layers.
[1.2.0] 2023-06-28 #
CachedTileProvider
- Add the
List<Interceptor>? interceptors
as a Parameter and remove theverbose
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
andkeyBuilder
as optional parameters toCachedTileProvider
:
[1.0.0] 2023-06-09 #
- Initial version.