Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract widget with a child parameter #49575

Open
Tracked by #55825
keertip opened this issue Aug 1, 2022 · 1 comment
Open
Tracked by #55825

Extract widget with a child parameter #49575

keertip opened this issue Aug 1, 2022 · 1 comment
Labels
analyzer-refactoring area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. customer-flutter P3 A lower priority bug or feature request type-enhancement A request for a change that isn't a bug

Comments

@keertip
Copy link
Contributor

keertip commented Aug 1, 2022

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 keertip added area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P3 A lower priority bug or feature request analyzer-refactoring customer-flutter type-enhancement A request for a change that isn't a bug labels Aug 1, 2022
@Captured-Heart
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-refactoring area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. customer-flutter P3 A lower priority bug or feature request type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

2 participants