Understanding pubspec.yaml file .
Today we're going to cover the topic of pubspec.yaml file .
What is pubspec.yaml file?
>> In simpler word , It is the file where we put our dependencies . Like if you have ever been to the programming field and have used python then there your use the import statement to import the libraries that you are going to be needed in your project.
What are the dependencies?
>> In simpler word , the dependencies are requirement in your application . These requirement is being satisfied by the piece of code that a programmer had already coded and you just use to save your time. Let's take some real world example ,
If you are a painter and you go to shop and buy some paint materials like brush, colors etc. . Here if you want then you can build a paint brush but you don't 'cause it is available and it saves your time and it is simple . Similarly for a flutter developer :
- pub.dev >> It the store where can find our requirement like if you are build a music app then you can get the music player package and in the pupspec.yaml file you can import it .
So , I hope you understood the concept of pubspec.yaml file and the dependencies . If don't then stay with me you'll get it.
Comments
Post a Comment