-
-
Notifications
You must be signed in to change notification settings - Fork 168
[FR]: Support Asset Transformation #514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
As examples are shown in the doc, resolving how transformers handled assets would be overwhelming. To use the asset in different loaders with flutter_gen, simply use its path should be able to compatible with Asset Transformations. In this case, the package will not add additional support for the feature. Feel free to add inputs to my opinion. |
Closing as above suggestion. Feel free to leave any further thoughts in the thread. |
I think this should be reopened. The proposed solution:
Isn't possible because flutter_gen can't parse the pubspec.yaml when using asset transformations. It gives an error: This is similar to #494. |
So let's track the on that issue, thanks for the reference. |
Yes, that error blocking the code generation. Its okay if fluttergen cannot generate that. The package can skip it and I still can call direct path |
Is there an existing issue for this?
Describe the problem
Flutter 3.22.0 now supports asset transformation. This allows, for example a .svg to be transformed into a .vec.
https://docs.flutter.dev/ui/assets/asset-transformation
Describe the solution
Support a way to generate asset classes that point to the transformed asset rather than the raw asset
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: