layout explorer needs to surface exceptions triggered by disallowed flex layouts
For example, frequently main axis can't be set to a value other than center if textDirection is null as is often the case.
I did something hacky related to this issue in src/inspector/flutter/layout_explorer/flex/flex.dart:661 by removing CrossAxisAlignment.baseline from CrossAxisAlignment options because it will throw exceptions when baseline is null.
If there are any additional pointers/ideas on how to solve this, I want to take this issue!
maybe catch exceptions within the service extensions and send the exception back as a message that you then display in the UI as a toast? If you take this on, I would wait for https://github.com/flutter/devtools/pull/1682 to land as that CL makes it way easier to write the layout explorer service extensions as you get type checking and auto-complete!