You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
layout explorer needs to surface exceptions triggered by disallowed flex layouts #1650
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 #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!
Activity
albertusdev commentedon Feb 25, 2020
I did something hacky related to this issue in
src/inspector/flutter/layout_explorer/flex/flex.dart:661by removingCrossAxisAlignment.baselinefromCrossAxisAlignmentoptions because it will throw exceptions whenbaselineis null.If there are any additional pointers/ideas on how to solve this, I want to take this issue!
jacob314 commentedon Feb 27, 2020
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 #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!