Skip to content

Support fixes to create stateful and stateless widgets #60878

Open
@bwilkerson

Description

@bwilkerson

When an undefined name appears as a class name in a constructor invocation and the context type is Flutter's Widget (such as nested inside another constructor invocation or in a return statement), there should be quick fixes to 'Create stateful widget' and 'Create stateless widget'.

The fixes should create code similar to the corresponding snippets, but tailored by any additional information in the constructor invocation, such as a constructor name or parameter names and types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-quick-fixIssues with analysis server (quick) fixestype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions