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.
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.