Skip to content

Commit

Permalink
prepare v1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
josxha committed Jan 24, 2024
1 parent 87f57d7 commit f019eb4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [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
Expand Down
2 changes: 2 additions & 0 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class ExampleApp extends StatefulWidget {

class _ExampleAppState extends State<ExampleApp> {
CacheStore _cacheStore = MemCacheStore();
final _dio = Dio();

@override
Widget build(BuildContext context) {
Expand All @@ -35,6 +36,7 @@ class _ExampleAppState extends State<ExampleApp> {
TileLayer(
urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
tileProvider: CachedTileProvider(
dio: _dio,
maxStale: const Duration(days: 30),
store: _cacheStore,
interceptors: [
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_map_cache
description: A slim yet powerful caching plugin for flutter_map tile layers.
version: 1.3.1
version: 1.4.0
repository: https://github.com/josxha/flutter_map_cache
issue_tracker: https://github.com/josxha/flutter_map_cache/issues

Expand Down

0 comments on commit f019eb4

Please sign in to comment.