mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Wrap main in runZonedGuarded and install FlutterError.onError / PlatformDispatcher.onError so background async failures get logged instead of dying silently. Guard PrefUtil.init so a SharedPreferences platform error no longer aborts startup. Recognize TypeError and FormatException in dioErrorToUserMessage to give a clearer message when the backend returns an unexpected JSON shape or bad timestamp. Wrap Settings._save in try/catch so prefs write failures show a snackbar instead of leaving the Save button silently dead. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>