Skip to content

[Feature Request]: Extract/Convert to widget (LVED 1.0.1) #291

@expired6978

Description

@expired6978

I found myself often building an object tree in a component, then realizing later I needed custom functionality or event handling and it seems like the only way to get that is to convert/create a widget out of the tree branch and then add the custom functionality into the provided hooks which are generated once (unlike every rebuild like _gen suffixed files).

Maybe a way to convert a branch into a new file under widgets/[input] would be useful I believe Flutter in Android Studio has this either built-in or available from a plugin.

It should extract all the children and any dependent local declarations and place them in a new widget derived from the parent type. If there's local declarations used which are shared with a sibling branch you did not select, copy the locals.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions