I am looking for a build.yaml
file in the flutter project, but I can't find it.
Is there any way I can edit this file?
The build definition file is a YAML format file (named acquia-pipelines. yaml ) you create in your workspace. The build definition file contains all of the required information to perform the build, including any variables that are required and the instructions used to perform the build.
Every pub package needs some metadata so it can specify its dependencies. Pub packages that are shared with others also need to provide some other information so users can discover them. All of this metadata goes in the package's pubspec: a file named pubspec.
If you have a text configuration file that you want to access at runtime in Flutter, then you need to put it in your app's asset bundle. Create a folder named assets in the root of your Flutter project and add my_config. json to it (still with the same JSON content that you used in the Dart example).
The file is only there if you create it.
It should be in the same directory as the pubspec.yaml
file.
See also https://github.com/dart-lang/build/blob/master/docs/build_yaml_format.md
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With