-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[google_maps_flutter] Breaking change fix for bitmap scaling #1821
Changes from 9 commits
f9597ec
74e4333
c7beecf
9cf14ff
4c12b6a
3a1378b
aeb52b2
78edc73
2fa20d6
5cb40bd
a000e0b
5b453bb
b613631
7142174
7fe0eda
f0c7589
c14cdef
e15039c
85d1979
6cf6c29
d5c211f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,7 @@ | ||
| ## 0.5.21 | ||
|
|
||
| * Breaking change fix for BitmapDescriptor scaling override | ||
|
|
||
| ## 0.5.20 | ||
|
|
||
| * Add map toolbar support | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -58,8 +58,9 @@ class BitmapDescriptor { | |
| String assetName, { | ||
| AssetBundle bundle, | ||
| String package, | ||
| bool mipmaps = true, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it possible to make it a non-breaking change by defaulting the
This comment has been minimized.
Sorry, something went wrong.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since the ecosystem might have already adopted the last change, compares to the latest code base, setting
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please also add dart doc to explain this param.
This comment has been minimized.
Sorry, something went wrong.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Something like: |
||
| }) async { | ||
| if (configuration.devicePixelRatio != null) { | ||
| if (!mipmaps && configuration.devicePixelRatio != null) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This comment has been minimized.
Sorry, something went wrong. |
||
| return BitmapDescriptor._(<dynamic>[ | ||
| 'fromAssetImage', | ||
| assetName, | ||
|
|
@@ -85,5 +86,8 @@ class BitmapDescriptor { | |
|
|
||
| final dynamic _json; | ||
|
|
||
| @visibleForTesting | ||
| dynamic toJson() => _json; | ||
|
|
||
| dynamic _toJson() => _json; | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add an optional param
mipmapsforBitmapDescriptor. fromAssetImage.