pubspect.yaml in Flutter | Flutter pubspect.yaml file |Flutter Tutorial #4

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
welcome to friday teacher in this specific video i will talk in detail regarding the pop speak dot yama file so without wasting time let's get started you might have observed along with every flat application you will get a special file called a pubspec dot yaml file now what do you mean by this file as the name suggests the pub spec indicates the pub pop means library spec means specification means this is the file where you specify the perk that is the library is used inside this project now yaml is actually the extension of this file yaml basically stands for yet another markup language or the reverse acronym is yamal int markup language now inside your pubspec.yaml file you won't find these two lines this is the lines added by me as a flutter developer we use this file only for two different purposes the first one is to specify the assets that is the images audio video and the font used in the project and second one to specify the libraries that is the dependencies that we have used inside the project before i start explaining the contents of this file it is important to note that this particular file is case sensitive as well as the space sensitive yamal is actually a serialization language which is very much similar to xml and json in this ml file data is stored in the form of key and value pair for example we can see this name is like a key and the first underscore app is a kind of data for this key the comments inside yaml file are specified using the hash symbol name property specifies the name of your application which is actually the first underscore app in my case description specifies the description of your flutter project when we use none in case of publish underscore 2 it means we don't want to publish this to your pub.table but consider you want to publish your project bob.due in this case we have to remove the specific line version property specifies the version and build number of your application this is what the version of your application and whatever you write after the plus is called a build number version property is very important in case if you are planning to upload your project to the play store consider that i uploaded a project to the play store so in this case i can have this particular version but next time when i'm updating my application and i want the updated project to be uploaded to play store in that case i must have to update this particular version the sdk property inside the environment property specifies the version of that sdk i'm using for my project all the dependencies and libraries that we want to use inside the project must be specified inside these dependencies or div dependencies now what is actually a difference between dependencies and dave dependencies for this i will create separate videos in my upcoming sessions flutterland specifies the linked version that we are using in the project we can actually configure or specify the different linked rules inside the file called analysis underscore options.yaml file which is again a yaml file that you can find inside your project flutter is the main property inside which we have property called users material design true it means in this project by using the material design pattern whenever a property contains a single value it has to be specified like this but when a property contains multiple values in case of yaml file it has to be specified using the dash along with the separate line of content or it can be placed inside the pair of square brackets this asset properties is actually used to configure the assets that is the images audio video or pdf type of contents that we have used inside the project inside the flutter property we have the property called points using which we can specify the different type of points along with the bond configurations how to configure images and fonts in the flutter project for this i will create the dedicated videos that's it for this video see you guys in the next video if you really like the way i'm explaining the concept then don't forget to like share subscribe and hit the bell notification button to get my latest videos
Info
Channel: Flutter Teacher
Views: 3,112
Rating: undefined out of 5
Keywords: pubspect.yaml in Flutter, flutter pubspect.yaml file, pubspect.yaml, flutter pubspect.yaml, use of pubspec.yaml in flutter, what is pubspec.yaml in flutter, exploring pubspec.yaml, pubspec.yaml in flutter, learning pubspec.yaml, yaml file in flutter, flutter yaml file, pubspec.yaml in detailed, inside pubspec.yaml file, pubspec.yaml file, pubspec.yml in flutter, yaml & yml in flutter, need of pubspec.yaml in flutter, flutter tutorial, dart, flutter
Id: w3kCEgWLo2g
Channel Id: undefined
Length: 4min 58sec (298 seconds)
Published: Tue Feb 22 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.