Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is build.yaml file in Flutter project?

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?

like image 913
Michael Cube Avatar asked Jul 06 '18 04:07

Michael Cube


People also ask

What is build yaml?

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.

What is a Pubspec file in Dart?

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.

Which file is the configuration file for flutter?

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).


1 Answers

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

like image 86
Günter Zöchbauer Avatar answered Oct 21 '22 21:10

Günter Zöchbauer