-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing Remove this widget
case and wrongly removing const
#57072
Comments
Summary: The "Remove this widget" feature in Flutter's widget inspector is inconsistent. It disappears when removing a child widget from a |
How often does this situation arise? I wouldn't think it happens very often, so it doesn't seem like a high priority issue, but if you know differently ... What should the result be of removing
That seems like a clear bug. |
With this you also can't remove the Center(
child: Text(''),
)
Or the I would suggest the assist to look if the parameter is positional (not optional) or required to decide this and then if it can be safely removed, simply remove the full parameter.
I'm not sure. I do get to this some of the time when I have custom widgets in different places on my screen and I'd like to remove it from one of those places.
I do agree this is definitely not a high-priority issue. I just think it would be nice to have the assist do this for us. Some of the time there can be lots of inner parameters and this would lessen the job of selecting the full range of lines. |
I agree, but we need to focus on the higher priority issues first. |
Repro:
Wrongs:
Text
the option toRemove this widget
is gone fromColumn
Center
you have the option toRemove this widget
but it does removeconst
The text was updated successfully, but these errors were encountered: