mirror of
https://github.com/hiddify/hiddify-next.git
synced 2026-07-19 21:05:38 +08:00
Errors surfaced during bootstrap call showErrorToast before runApp(), when no Toastification overlay exists yet. findToastificationOverlayState then null-checks a null value and throws, and that exception propagates out of bootstrap before runApp() is reached, leaving the app on a blank screen. This commit wraps the show call in a try/catch that logs and returns null when the overlay is not available, so a notification can never abort startup or crash the app. _show now returns a nullable item, matching the already-nullable public show methods. |
||
|---|---|---|
| .. | ||
| in_app_notification_controller.dart | ||