Giter VIP home page Giter VIP logo

flutter_asset_generator's Issues

Error when executing build runner.

[INFO] Generating build script...
[INFO] Generating build script completed, took 501ms

[INFO] Creating build script snapshot......
[WARNING] stderr: .dart_tool/build/entrypoint/build.dart:17:58: Error: Undefined name 'resourceFileBuilder'.
[WARNING] stderr:   _i1.apply(r'flutter_asset_generator:testBuilder', [_i2.resourceFileBuilder],
[WARNING] stderr:                                                          ^^^^^^^^^^^^^^^^^^^
[INFO] Creating build script snapshot... completed, took 4.8s

[SEVERE] Failed to snapshot build script .dart_tool/build/entrypoint/build.dart.
This is likely caused by a misconfigured builder definition.

能否支持生成的变量名字的配置

比如assets/example.png
会生成变量名为: ASSETS_EXAMPLE_PNG

我想生成这样的变量名字: r_example
也就是

  1. 前缀统一为 自定义字符 "r".
  2. 不携带文件扩展名.
  3. 全小写

这些能否全都可配置?

Set Output Path Using Configuration

I would like to set the output path via the fgen.yaml configuration file.

I'm currently setting the path of the generated file with the command: fgen -o lib/generated/resource.dart

Is there a way to specify the output directory using the configuration file?

fgen Failed to precompile

项目根目录执行fgen后报下面这个错误

image

Flutter Doctor

[✓] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-x64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.2)
[✓] VS Code (version 1.56.2)
[✓] Connected device (2 available)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.