-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Issue Summary (GetX + WebView)
After upgrading Flutter from 3.29.2 to 3.38.5, navigating from an active InAppWebView using GetX (Get.offAllNamed) causes a black screen / blank screen on Android.
Why it happens
Navigation is triggered from the GetX controller while the WebView is still loading
Get.offAllNamed immediately removes the WebView route
In Flutter 3.38+ (Android WebView v134+), this crashes the WebView renderer
Result: black screen flash
Why it worked before
Flutter 3.29.2 had a more tolerant WebView lifecycle
Route removal during active WebView loading did not crash
Correct approach
Do not navigate from GetX controller
Controller should only detect URL state
UI should:
Stop WebView loading
Wait briefly
Then call Get.offAllNamed
Key takeaway
In Flutter 3.38+, GetX navigation must not remove an active WebView directly.
Navigation should happen only after WebView is stopped and stabilized.