Skip to content

Meta issue for the difficulty of using assets with Flutter #27802

Closed

Description

@matanlurey

I wanted to try and highlight how several outstanding issues related to assets really hurt productivity:

Activity

  1. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    a: assetsPackaging, accessing, or using assets
    on Feb 11, 2019
  2. escamoteur commented on Sep 4, 2019

    @escamoteur
    Contributor

    Just one addition, packages can't define assets that are not inside the lib folder so that you have to do it like this:

       - packages/my_project/assets/image.png
    
  3. bitsydarel commented on Dec 2, 2019

    @bitsydarel

    Today I came across this at work, is there any update on this issue ?

  4. added this to the milestone on Dec 3, 2019
  5. added
    P2Important issues not at the top of the work list
    on May 29, 2020
  6. removed this from the milestone on Aug 17, 2020
  7. lavahasif commented on Sep 24, 2021

    @lavahasif

    image

    @escamoteur solved the problem

  8. om-ha commented on Jul 1, 2022

    @om-ha

    Any update on this please?

  9. panda-p1 commented on Oct 7, 2022

    @panda-p1

    Is here any update?

  10. skiryuk commented on Jan 18, 2023

    @skiryuk

    any update?

  11. subzero911 commented on Jan 30, 2023

    @subzero911

    Probably related:
    #119562
    I declare fonts in a package's pubspec, but the main app does not see these fonts, unless I explicitly add all of them to the pubspec too.

    I suggest adding a directive for importing all fonts from the package:

    fonts:
      import packages/mts_granat # imports all fonts from its pubspec
  12. added
    customer: crowdAffects or could affect many people, though not necessarily a specific customer.
    on Jan 31, 2023
  13. added
    tool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.
    on Jun 30, 2025
  14. github-actions commented on Sep 3, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  15. locked as resolved and limited conversation to collaborators on Sep 3, 2026
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 lista: assetsPackaging, accessing, or using assetscustomer: crowdAffects or could affect many people, though not necessarily a specific customer.team-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