Sitelet https://github.com/flutter/flutter/issues/146264
Skip to content

hook/build.dart Data assets support #146264

Description

@dcharkes

Update 2026-05-12: This is available under flutter config --enable-dart-data-assets. Please report any issues that you find.

Update 2026-09-29: With @RecordUse() info available in link hooks since Dart 3.13, this experiment can be used to do tree-shaking of assets (#64106).

The hook/build.dart of packages should be able to not only add native code assets, but also data assets.

In Flutter, these data assets should be made available through the existing asset bundle API.

This issue tracks the flutter implementation for this in flutter tools.

Tracking issue for Dart and Flutter combined:

Umbrella issue for native assets:

cc @mosuem @andrewkolos @christopherfujino

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.tool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.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