New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GoogleMap Composable breaks layout in Preview #212
Comments
@claytongreen that's how I would fix it, too. Feel free to open a pull request with that fix. |
Since this changes the return type, do users of this library have to change their code when using the GoogleMap composable? i.e., is it a breaking change? |
Ah yeah it should be:
|
Good catch! |
🎉 This issue has been resolved in version 2.7.3 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
A previous issue #128 and pull request #179 fix the Compose preview breaking when using a
GoogleMap
composable.But the layout in the preview is still incorrect as any of the modifiers passed to the
GoogleMap
are discarded with the early return.For example:
A possible fix could be instead of a bare return when in preview,
GoogleMap
could return aBox
that keeps the modifiers.I have a commit (7e103f5) ready to go, but the pull request said to make an issue first.
Thanks
The text was updated successfully, but these errors were encountered: