hiddify-next/lib/core/notification
Andrew Szeto bf1006d90e
Guard notifications against a missing toast overlay
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.
2026-06-12 20:50:51 -07:00
..
in_app_notification_controller.dart Guard notifications against a missing toast overlay 2026-06-12 20:50:51 -07:00