Skip to content

Commit a14dd27

Browse files
jokerttuiandis
authored andcommitted
[google_maps_flutter] Undeprecate BitmapDescriptor methods (flutter#6832)
Undeprecate BitmapDescriptor.fromAssetImage and BitmapDescriptor.fromBytes * Undeprecates `BitmapDescriptor.fromAssetImage`. * Undeprecates `BitmapDescriptor.fromBytes`. * Fixes issues with deprecation in version 2.7.0. The new formats won't be supported until flutter#6826 lands. Deprecation notices can be re-added after the implementation PRs have landed. Fixes: flutter/flutter#149183
1 parent 0ca630f commit a14dd27

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

packages/google_maps_flutter/google_maps_flutter_platform_interface/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 2.7.1
2+
3+
* Undeprecates `BitmapDescriptor.fromAssetImage`.
4+
* Undeprecates `BitmapDescriptor.fromBytes`.
5+
* Fixes issues with deprecation in version 2.7.0.
6+
17
## 2.7.0
28

39
* Adds better support for marker size and scaling behaviour with `AssetMapBitmap` and `BytesMapBitmap`.

packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/bitmap.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,6 @@ class BitmapDescriptor {
179179
/// and scales the images to the right resolution depending on the dpi.
180180
/// Set `mipmaps` to false to load the exact dpi version of the image,
181181
/// `mipmap` is true by default.
182-
@Deprecated(
183-
'Switch to using `asset` method, AssetMapBitmap or AssetMapBitmap.create instead')
184182
static Future<BitmapDescriptor> fromAssetImage(
185183
ImageConfiguration configuration,
186184
String assetName, {
@@ -219,7 +217,6 @@ class BitmapDescriptor {
219217
/// bitmap, regardless of the actual resolution of the encoded PNG.
220218
/// This helps the browser to render High-DPI images at the correct size.
221219
/// `size` is not required (and ignored, if passed) in other platforms.
222-
@Deprecated('Switch to using `bytes` method or BytesMapBitmap instead')
223220
static BitmapDescriptor fromBytes(Uint8List byteData, {Size? size}) {
224221
assert(byteData.isNotEmpty,
225222
'Cannot create BitmapDescriptor with empty byteData');

packages/google_maps_flutter/google_maps_flutter_platform_interface/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ repository: https://github.com/flutter/packages/tree/main/packages/google_maps_f
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+maps%22
55
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
66
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
7-
version: 2.7.0
7+
version: 2.7.1
88

99
environment:
1010
sdk: ">=3.0.0 <4.0.0"

0 commit comments

Comments
 (0)