Skip to content

Commit 9db2b0b

Browse files
authored
Fixed Null-Safety Errors (#1318)
* Fixed null-safety errors Updated package version * Updated CHANGELOG * Fixed bug
1 parent e6a7794 commit 9db2b0b

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

CHANGELOG.md

+20-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
11
# Changelog
22

3-
## [2.1.0] - 2022/XX/XX
3+
## [2.1.1] - 2022/07/25
4+
5+
Contains the following additions/removals:
6+
7+
- None
8+
9+
Contains the following bug fixes:
10+
11+
- Removed a particularly illusive null-safety bug - [#1318](https://github.com/fleaflet/flutter_map/pull/1318)
12+
13+
In other news:
14+
15+
- None
16+
17+
Many thanks to these contributors (in no particular order):
18+
19+
- sergioisair (tested changed)
20+
- ... and all the maintainers
21+
22+
## [2.1.0] - 2022/07/22
423

524
Contains the following additions/removals:
625

lib/src/layer/tile_layer/tile_provider/network_no_retry_image_provider.dart

+3-1
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,13 @@ class FMNetworkNoRetryImageProvider
9090
return decode(bytes);
9191
} catch (e) {
9292
scheduleMicrotask(() {
93-
PaintingBinding.instance.imageCache.evict(key);
93+
_ambiguate(PaintingBinding.instance)?.imageCache.evict(key);
9494
});
9595
rethrow;
9696
} finally {
9797
chunkEvents.close();
9898
}
9999
}
100+
101+
T? _ambiguate<T>(T? value) => value;
100102
}

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_map
22
description: A versatile mapping package for Flutter, based off leaflet.js, that's simple and easy to learn, yet completely customizable and configurable.
3-
version: 2.1.0
3+
version: 2.1.1
44
repository: https://github.com/fleaflet/flutter_map
55
documentation: https://docs.fleaflet.dev
66

0 commit comments

Comments
 (0)