sdk
sdk copied to clipboard
Extract widget with a child parameter
Extracting a surrounding widget while keeping a child parameter.
for example
Container(child: Text())
Extract Container
as new widget called Wrapper
and keep Text
as its child, so the result would be
Wrapper(child: Text())
Should be able to do the same with children or builder pattern
When you say children, do you mean in cases like using ListView, Column, Row widgets?