Skip to content

Deprecate and remove flutter generate functionality #61508

@jonahwilliams

Description

@jonahwilliams

This was an attempt at creating a workflow that better integration code generation into flutter run. Nevertheless, there were a number of failures and issues that were unsolvable:

  • Maintaining build_runner integration code was trickier than expected, due to the large API surface
  • Surfacing errors in an actionable way was hard when so much of the functionality relied on autogenerated code
  • Further complications from null safety means than generate + check-in workflows might be more compelling, due to the need to closely control build_runner versions.

Because of this, we've decided to deprecate and remove the functionality and recommend that users use dart pub run build_runner instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: qualityA truly polished experiencetoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions