Flutter Project Structure

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
welcome to flood edition in this video we will understand the default project structure of our flutter application so without wasting time let's get started as you can see we have application called first underscore app that we have created in our last application so we'll try to understand each and every folder in this particular project let's start from the first one called dot dart underscore tool this folder is available from the dart version 2.0 and it is a replacement of dot pub folder that you will find in the earlier versions of the dart this folder is actually used by the pub package manager the next one is dot idea folder this folder contains id specific configuration such as the workspace and etc it is only used in case when we are developing application using intellij idea or using the android studio the next folder is android as we know a flutter code is actually converted into the native specific code for execution this android folder actually contains the native android code that will be injected in the android emulator or in the real device in case of your development mode now you might have question that do we really need to edit the content of this folder i will say yes we need to edit the content of this folder in case when we have a specific android code or android configuration to be done for example when we want to add our application to the firebase or you might want to configure the local as well as the firebase notification so at that time we may need to jump inside this folder and there we have to deal with few files the next folder is build this folder contains the compiled code of your flatter application the release apk or the apk bundle that we create in order to upload to play store will be placed inside this particular folder next we have the ios folder which is very much similar to the android folder this folder contains the native ios specific code that can be edited using the xcode and the machine containing the mac operating system we really need to edit content of this folder only when we have ios specific code or ios specific configuration to be done such as connecting your application to firebase or may be configuring a local or the firebase notifications the next one is the leave folder which is the most important folder in the flatter project the entire source code of your application along with all the dark file and subfolders will be placed inside this leaf folder this folder also contains the file called main.rt which is actually the entry point for your program execution the test folder is used for all automatic testing and managing all test cases of our application the next one is the web folder the latest version of flutter that we use today has the web enabled by default this folder contains the web specific content and configurations dot git ignore file contains the list of files and folders that must be ignored by the git version control system we can also specify the files and the folders that you want it should not be uploaded in your git project repository dot metadata file stores the metadata of your project such as the project version the channel and the project type dot packages file contains the information regarding components dart and flutter packages used inside the project this file is actually used by the package manager if you open this file we can observe this particular file is being duplicated instead of using this file your pub package manager uses the file called package underscore config.json which is available inside the folder called dot dot underscore tool next we have a file called analysis underscore options.yammer using this file we can configure and instruct the data analyzer for checking the errors and warnings first underscore app dot iml it is actually the application name dot iml file this file is a model setting file and contains the information regarding various modules used in the project the perspective log file is actually used by the pub package manager in order to get the concrete version of immediate and transitive dependencies in the project popspeak.yaml5 is one of the most important file in the flutter project we use this file in order to specify the assets in the project like images ideo fonts and etc we also specify various dependencies that is the libraries required inside the project i will create a dedicated video for understanding the prospect.yaml file in detail the last one is readme.md file it is actually the optional file and it contains the project information and the documentation regarding the project content of this file will be displayed inside the readme file at your github repository so make sure that whatever content that you want to display to user inside your readme file it has to be placed inside this specific file that's it for this video if you really like the way i'm explaining the concept then don't forget to like my videos share my videos subscribe my channel and hit the bell notification button to get my latest videos
Info
Channel: Flutter Teacher
Views: 3,351
Rating: undefined out of 5
Keywords: flutter project structure, project structure of flutter, flutter app structure, flutter application structure, flutter directory structure, directory structure of flutter, default project structure of flutter, flutter default director structure, structuring flutter project, folders in flutter app, directories in flutter app, flutter app folders, flutter app directories, flutter tutorial, flutter folders, flutter directories
Id: VDES9I5ukwg
Channel Id: undefined
Length: 5min 58sec (358 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.