Skip to content

Ios crash issue 87#98

Open
Wahab-Khan wants to merge 2 commits into
Afur:masterfrom
Wahab-Khan:ios-crash-issue-87
Open

Ios crash issue 87#98
Wahab-Khan wants to merge 2 commits into
Afur:masterfrom
Wahab-Khan:ios-crash-issue-87

Conversation

@Wahab-Khan
Copy link
Copy Markdown

Summary

  • Fix iOS crash caused by force-unwrapping window/rootViewController by supporting both UIScene (iOS 13+) and legacy AppDelegate window lookup.
  • Validate method-call arguments and return FlutterError instead of crashing.
  • Relax Dart SDK constraint to allow Dart 3 toolchains (<4.0.0).

Context

Addresses crash reported in upstream issue #87.

Test plan

  • flutter pub get
  • iOS: call convertFromHtmlContent on an iOS 13+ scene-based app and confirm it no longer crashes.

Wahab-Khan and others added 2 commits May 6, 2026 14:12
Avoid force-unwrapping window/rootViewController by supporting both UIScene (iOS 13+) and legacy AppDelegate window lookup, and validate method call arguments to return FlutterError instead of crashing.

Co-authored-by: Cursor <cursoragent@cursor.com>
Allow Dart <4.0.0 so the package can be used with modern Flutter/Dart toolchains.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant