sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Extract widget with a child parameter

Open keertip opened this issue 2 years ago • 1 comments

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

keertip avatar Aug 01 '22 18:08 keertip

When you say children, do you mean in cases like using ListView, Column, Row widgets?

Captured-Heart avatar Aug 05 '22 22:08 Captured-Heart