Skip to content

Commit

Permalink
Fixed Null-Safety Errors (#1318)
Browse files Browse the repository at this point in the history
* Fixed null-safety errors
Updated package version

* Updated CHANGELOG

* Fixed bug
  • Loading branch information
JaffaKetchup authored Jul 25, 2022
1 parent e6a7794 commit 9db2b0b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
21 changes: 20 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
# Changelog

## [2.1.0] - 2022/XX/XX
## [2.1.1] - 2022/07/25

Contains the following additions/removals:

- None

Contains the following bug fixes:

- Removed a particularly illusive null-safety bug - [#1318](https://github.com/fleaflet/flutter_map/pull/1318)

In other news:

- None

Many thanks to these contributors (in no particular order):

- sergioisair (tested changed)
- ... and all the maintainers

## [2.1.0] - 2022/07/22

Contains the following additions/removals:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,13 @@ class FMNetworkNoRetryImageProvider
return decode(bytes);
} catch (e) {
scheduleMicrotask(() {
PaintingBinding.instance.imageCache.evict(key);
_ambiguate(PaintingBinding.instance)?.imageCache.evict(key);
});
rethrow;
} finally {
chunkEvents.close();
}
}

T? _ambiguate<T>(T? value) => value;
}
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
description: A versatile mapping package for Flutter, based off leaflet.js, that's simple and easy to learn, yet completely customizable and configurable.
version: 2.1.0
version: 2.1.1
repository: https://github.com/fleaflet/flutter_map
documentation: https://docs.fleaflet.dev

Expand Down

0 comments on commit 9db2b0b

Please sign in to comment.