Skip to content

Scan folders for font files similar to asset scan #18897

Closed as not planned
Closed as not planned

Description

@fmatosqg

Continuing work on #4890, but adding folder scan for folders.

It would be nice to make it seamless to download font packages from Google font pages, which would make it slightly different from asset scan. I'd lean into doing a recursive scan here, which is a big problem for regular assets because of variant handling for images.

Activity

  1. added
    c: new featureNothing broken; request for a new capability
    toolAffects the "flutter" command-line tool. See also t: labels.
    on Aug 27, 2018
  2. added this to the milestone on Aug 27, 2018
  3. modified the milestones: , on Jan 7, 2020
  4. YK-Unit commented on Feb 26, 2020

    @YK-Unit

    Hi, all:

    I'm a member of Fly-Mix Team from NetEase company. My team did develop a flutter development tool: Flr(Flutter-R) to support the feature that you want.

    Flr is a flutter resource manager tool, which can help flutter developer to auto specify assets in pubspec.yaml and generate r.g.dart file which likes R.java in Android after he changes the flutter project assets. With r.g.dart, flutter developer can apply the asset in code by referencing it's asset ID function, such as:

    import 'package:flutter_r_demo/r.g.dart';
    
    // test_sameName.png
    var normalImageWidget = Image(
      width: 200,
      height: 120,
      image: R.image.test_sameName(),
    );
    
    // test_sameName.gif
    var gifImageWidget = Image(
      image: R.mage.test_sameName_gif(),
    );
    
    // test.svg
    var svgImageWidget = Image(
      width: 100,
      height: 100,
      image: R.svg.test(width: 100, height: 100),
    );
    
    // test.json
    var jsonString = await R.text.test_json();
    
    // test.yaml
    var yamlString = await R.text.test_yaml();

    PS: yes, it is just like the AAPT(Android Asset Packaging Tool) in Android.

    Up to now, Flr has supported Android Studio Plugin, CLI, and VSCode Extension:

    1. Flr Android Studio Plugin Version

    2. Flr CLI Version

    3. Flr VSCode Extension Version

  5. added
    P3Issues that are less important to the Flutter project
    on May 29, 2020
  6. removed this from the milestone on Jun 1, 2020
  7. removed this from the milestone on Jun 16, 2020
  8. removed this from the milestone on Aug 17, 2020
  9. github-actions commented on Jul 11, 2025

    @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.

  10. locked as resolved and limited conversation to collaborators on Jul 11, 2025
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

    P3Issues that are less important to the Flutter projecta: assetsPackaging, accessing, or using assetsc: new featureNothing broken; request for a new capabilityteam-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