8000 Deprecate and remove synthetic `package:flutter_gen` · Issue #102983 · flutter/flutter · GitHub
[go: up one dir, main page]

Skip to content
Deprecate and remove synthetic package:flutter_gen #102983
Closed
@goderbauer

Description

@goderbauer

Update as of 2024-02-18: https://docs.flutter.dev/release/breaking-changes/flutter-generate-i10n-source.


Currently, flutter_gen is a virtual package we generate to provide certain functionality (e.g. internationalisation). Developers have to import that package into their app. The package itself is not listed in their app's pubspec.yaml, though. Instead, the flutter_gen package is made available by a rewrite of the package config file itself.

This "hack" has caused issues with multiple tools in the past, e.g.:

It's expensive for tooling to have to handle package:flutter_gen as a special case and it's easy to overlook that special support for it is needed resulting in a sub-par user experience.

We should rethink whether there are better ways to support the functionality that flutter_gen is currently providing that's more aligned with the dart ecosystem and its tooling. Maybe the upcoming support for macros in Dart can help with that).

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: internationalizationSupporting other languages or locales. (aka i18n)c: new featureNothing broken; request for a new capabilityp: waiting for stable updateflutter/packages issues that can't be fixed until functionality reaches the stable Flutter channelteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0