Skip to content
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

[flutter_local_notifications] Fix crash on latest Flutter master due to ambiguous method call #2355

Merged
merged 3 commits into from
Jun 29, 2024

Conversation

gmackall
Copy link
Contributor

@gmackall gmackall commented Jun 28, 2024

Fixes #2329, by casting the null argument to be a Bitmap so that we choose

https://developer.android.com/reference/android/app/Notification.BigPictureStyle#bigLargeIcon(android.graphics.Bitmap)

of the two methods.

Verified by running the example app.

@gmackall gmackall changed the title [flutter_local_notifications] Fix crash on latest flutter master due to ambiguous method call [flutter_local_notifications] Fix crash on latest Flutter master due to ambiguous method call Jun 28, 2024
@MaikuB
Copy link
Owner

MaikuB commented Jun 29, 2024

Thanks for the PR. Was about to create a branch to ask others to test so much appreciated for this.

Would you be able to update your branch with latest changes from master though? I noticed PRs created weren't running th the formatting jobs. I merged some changes that should fix this now but would like to confirm it's firing not just for me but others too

@MaikuB MaikuB merged commit 053ee0b into MaikuB:master Jun 29, 2024
12 checks passed
@mark8044
Copy link

Can confirm the fix works on latest flutter master.
Awesome turn around time! Thanks much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error bigPictureStyle.bigLargeIcon(null) v17.1.2
3 participants