See #3858 (comment)
If your Flutter app is too far down the tree that we don't detect it, trying to launch it gives confusing errors. We should handle this better and make it clear to the user how to fix.
Or, if possible, we should perform a silent restart that forces Flutter mode at any point that we realise we have a Flutter project.