Replace toImage with toImageSync for Flutter >= 3.7#1268
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## v7.0.0 #1268 +/- ##
===========================================
- Coverage 88.73% 76.10% -12.64%
===========================================
Files 122 12 -110
Lines 3818 318 -3500
===========================================
- Hits 3388 242 -3146
+ Misses 430 76 -354
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
|
@marandaneto Interestingly, the compiler does complain with Flutter |
Is the compiler or just the IDE linter? if you can run, its not a compiler issue and this should be fine. |
I think it complains because Calling something on dynamic disables any typechecks, so return values are dynamic too. |
|
@denrase this one still has pending comments |
marandaneto
left a comment
There was a problem hiding this comment.
If CI is happy, we can merge it, thanks.
|
@denrase we can fix the conflict and merge it if CI is happy |
# Conflicts: # flutter/lib/src/event_processor/screenshot_event_processor.dart
Instructions and example for changelogPlease add an entry to Example: ## Unreleased
- Replace `toImage` with `toImageSync` for Flutter >= 3.7 ([#1268](https://github.com/getsentry/sentry-dart/pull/1268))If none of the above apply, you can opt out of this check by adding |

📜 Description
Closes #1246
💚 How did you test it?
Ran example app on Flutter 3.3.x and 3.7.x and checked if triggering error attached a screenshot.
📝 Checklist
sendDefaultPiiis enabled