Flutter white screen error after iOS state restoration


I have a Flutter app.
When running it on a real iOS device in release mode, when state should be restored, white screen shows up instead of the app.

I use Navigator.restorablePushAndRemoveUntil, I assume the problem is with restoring the navigation. It works good on Android.

When white screen occurred, I got the following error logs:

[ERROR:flutter/lib/ui/dart_runtime_hooks.cc(38)] Dart Error: Dart_LookupLibrary: library 'package:own_app_name/presentation/pages/loggedin.dart' not found.
[ERROR:flutter/shell/common/shell.cc(114)] Dart Error: Dart_LookupLibrary: library 'package:own_app_name/presentation/pages/loggedin.dart' not found.

So it seems like it can’t find its own files.

I disabled state restoration and it worked well.
When I try it without logging in (so with another page instead of loggedin.dart), the same thing happens, just with another file name in the error log.

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img