Skip to content

Add a "Wrap with builder" assist that works like "Wrap with widget" #1890

@amreniouinnovent

Description

@amreniouinnovent

Use case

The refactor menu in VSCode has basic widgets.
I want to be able to wrap my widget in a BlocBuilder widget directly or any other widget other than the default widgets

Proposal

I think there should a JSON format or similar way for adding more widgets to the refactor menu and asks for an array of parameters like bloc state class, bloc event class, etc.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixed in dart / flutterin editorRelates to code editing or language featuresin flutterRelates to running Flutter appsin lsp/analysis serverSomething to be fixed in the Dart analysis serveris enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions