Skip to content

Support the "Remove this widget" assist on Sliver widgets #56637

@tenhobi

Description

@tenhobi

Similarly to analyzer assist for child and children to Remove this widget, I would like to add the same also for Slivers, aka expand the suggestion to also detect sliver or slivers parameters.

Right now I can "make it work" by i.e. changing sliver to child which then adds the option, but that is not the best.

This would make possible to see "Remove this widget" suggestion i.e. on SliverPadding here in the example and more:

const SliverPadding( padding: EdgeInsets.all(42), sliver: SliverToBoxAdapter(child: Text('aaa')), ),

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestdevexp-assistIssues with analysis server assistslegacy-area-analyzerUse area-devexp instead.type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions