website icon indicating copy to clipboard operation
website copied to clipboard

minor: change transformers args to list

Open hadysata opened this issue 1 year ago • 3 comments

The args in the asset-transformation section should be of type list of strings, not a single string as the documentation shows. Running the code as in the docs will result in the following issue:

Error detected in pubspec.yaml:
Unable to parse assets section.
In transformers section of asset "assets/logo.svg": In args section of transformer using package "vector_graphics_compiler": Expected args to be a list of String, but got --tessellate --font-size=14 (String).
Please correct the pubspec.yaml file

This PR convert the args section in the docs to list.

Presubmit checklist

hadysata avatar May 18 '24 21:05 hadysata

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar May 18 '24 21:05 google-cla[bot]

/gcbrun

domesticmouse avatar May 19 '24 01:05 domesticmouse

Visit the preview URL for this PR (updated for commit 005a165ab477c09b8dfd45d6727b1254c0ff2b48):

https://flutter-docs-prod--pr10622-fix-args-to-list-t9pneitv.web.app

flutter-website-bot avatar May 19 '24 01:05 flutter-website-bot