0% found this document useful (0 votes)
14 views

Flutter Project Structure

Structure of a flutter project

Uploaded by

Eman Fatima
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Flutter Project Structure

Structure of a flutter project

Uploaded by

Eman Fatima
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

CSI-601

MOBILE APP DEVELOPMENT


 Flutter Project Structure
STRUCTURE
 A project in flutter contain following folders:

1. .idea;
 The .idea folder contains your code editor’s project related settings specific files.
 No need to make manual changes here.
 It will project specific. Every project has different specification.

2. Android;
 The android folder inside the flutter project contains the android platform specific
settings ,resources and code.
 if you need to write any platform specific code will be making changes in here.
(…)
3. Build;
 The build folder contains the output generated when you build or run the flutter
project.
 you will find all release related files/folders like Apks and app bundles in here.

4. ios;
 similar to android folder, the ios folder contains ios specific settings, resources and
code.
 you will make platform specific code or changes in here.
(…)
5. Lib;
 The lib folder is main folder where you will write all the flutter app related codes.
 Initially it will contain just one single file main.dart which has the entry point for a flutter
app.
6.Test;
 The test folder is set to contain any testing related codes that you write.
 If u decide to write tests/test cases, you will be adding code in here.
7. .gitignore;
 This is git specific file.
 You can adjust the .gitignore file to include/exclude any files/folders as your need.
(…)
8. .metadata;
 Metadata files contains flutter project related metadata that flutter tool uses.
 You should not make manual changes to this file.

9. .packages;
 A flutter project code is composed of numerous libraries and packages.

 Some packages are pre installed and some are downloaded during development.

 The .packages holds the paths each of libraries/packages in your computer.

 You do not need to make any manual changes.


(…)
10. Pubspec.yaml;
 The pubspec.yaml contains flutter app specific metadata and configurations.
 You can configure dependencies such as external packages,image assets,font
files,app versions etc.with help of this file.
 You will make changes to pubspec.yaml file to add external dependencies.
11. Pubspec.lock;
 The pubspec.lock file is helper file created next to pubspec.yaml file.
 it lists specific version of each dependency that packages use in your app and
ensure version stays consistent across different developers machine.
 no need to make changes here.
(…)
12. README.md;
 You can write project specific things like what your project does or how to use
certain libraries in README.md file.

You might also like