Closed natintosh closed 1 week ago
If it helps, I have subpackages and I generate assets.gen.dart
for each subpackage. Then I just do something like this:
import 'package:ui' as ui;
import 'package:icons' as icons;
build() {
Widget(img: ui.Assets.buttton...
...
The scope of build_runner
doesn't seem to include packages, the feature might only be available through the command line. However, extending such ability will significantly increase the complexity of the implementation and destination management, also making exceptions across packages hard to recognize. With the latest version of the package, you can easily generate assets as package assets and use them without pain (.image()
, .svg()
, etc). Thus I'm closing the request as overwhelming to the package.
Is there an existing issue for this?
Describe the problem
I am not sure if this is possible or if this feature is already possible but to put it more concisely, I am not able to generate assets from a sub package
Describe the solution
I would like
FlutterGen
to generate assets from resources from other packages. for instanceAdditional context
No response
Code of Conduct