fluttercandies / flutter_asset_generator Goto Github PK
View Code? Open in Web Editor NEWGenerate an R file for mapping all assets. Supports preview of image.
License: MIT License
Generate an R file for mapping all assets. Supports preview of image.
License: MIT License
[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
也就是
这些能否全都可配置?
flutter_resource_generator any which doesn't exist (could not find package flutter_resource_generator at https://pub.flutter-io.cn), version solving failed.
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?
Do you plan to migrate to null-safety?
比如想过滤 .DS_Store 文件
项目根目录执行fgen后报下面这个错误
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.