-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[google_maps_flutter] Breaking change fix for bitmap scaling #1821
Conversation
…ling-bitmap-fix # Conflicts: # packages/google_maps_flutter/CHANGELOG.md # packages/google_maps_flutter/lib/src/bitmap.dart # packages/google_maps_flutter/pubspec.yaml
|
Friendly ping. What's the status of this pull request? |
…ap-fix # Conflicts: # packages/google_maps_flutter/CHANGELOG.md # packages/google_maps_flutter/pubspec.yaml
This comment has been minimized.
This comment has been minimized.
|
@duzenko is it possible to add a test that would've caused this to fail? or at least an example that would trigger this code path? |
This comment has been minimized.
This comment has been minimized.
Thanks! |
This comment has been minimized.
This comment has been minimized.
|
any updates? |
This comment has been minimized.
This comment has been minimized.
|
@asanoki @iskakaushik why the review is taking so long? We are using this PR and it works fine, can it be approved? |
|
@asanoki @iskakaushik why the review is taking so long? We are using this PR and it works fine, can it be approved? |
|
Let's push the fix please |
1 similar comment
|
Let's push the fix please |
|
A friendly reminder to check this PR and solve the issue in this discussion: |
|
@duzenko Does this now help enough for you to be able to finish doing the tests, so we can get your great work on this PR done? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| bool mipmaps = true, | ||
| }) async { | ||
| if (configuration.devicePixelRatio != null) { | ||
| if (!mipmaps && configuration.devicePixelRatio != null) { |
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.
!mipmaps would be false by default and we changed the behavior here right? I think you meant to set mipmaps to false by default?
This comment has been minimized.
This comment has been minimized.
Sorry, something went wrong.
| @@ -1,3 +1,7 @@ | |||
| ## 0.5.21 | |||
|
|
|||
| * Breaking change fix for BitmapDescriptor scaling override | |||
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 mipmaps for BitmapDescriptor. fromAssetImage .
| String assetName, { | ||
| AssetBundle bundle, | ||
| String package, | ||
| bool mipmaps = true, |
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.
Something like:
///
/// Set mipmaps to ... to allow ...., mipmaps is ... by default.
| String assetName, { | ||
| AssetBundle bundle, | ||
| String package, | ||
| bool mipmaps = true, |
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.
Since the ecosystem might have already adopted the last change, compares to the latest code base, setting mipmaps to true would be a breaking change, right?
|
Any updates on this guys ? :) |
Co-Authored-By: Chris Yang <[email protected]>
This comment has been minimized.
This comment has been minimized.
| mip.toJson().forEach((dynamic x) => print(x)); | ||
| scaled.toJson().forEach((dynamic x) => print(x)); |
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.
@duzenko forgot to ask, what is this test testing for? It seems to print stuff but never actually test anything?
This comment has been minimized.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
This comment has been minimized.
Sorry, something went wrong.
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.
I see, thanks. Do you want to try to make it work? I have resolved all the conflicts in this PR, it should be easier to work with now.
|
the submit-queue check seems to be stuck. Will close this PR and reopen to rerun the check. |
Description
Fixes the breaking change introduced in #1737
Related Issues
flutter/flutter#34386
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]). This will ensure a smooth and quick review process.///).flutter analyze) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?