WordPress+Flutter development APP tutorial: 3. Project directory structure

illustrate

This section will guide you to understand the various directories, files and related uses in the created flutter project.

start

The entire project directory is as follows:

1.android

Cross-platform android source code

2.ios

Cross-platform ios source code

3.lib

The working folder that needs to be encoded, the files when it was first created are:

main.dart: program entry

4.test

Flutter sample file directory, not used, can be deleted

5.web

Cross-platform H5, website source code

6. File: .metadata

The flutter project property file is generally not used, so you can ignore it

7. File.packages

deprecated

8. File: pubspec.lock

Dependency Package Record

9. File: pubspec.yaml

Project configuration, dependent packages used in the entire project, local resources (fonts, pictures, etc.) will be configured here (I will make a special section to explain this file in detail).

Summarize

Regarding the files and directories of the flutter project, you only need to remember the following three points:

  • lib
  • main.dart
  • pubspec.yaml

Directory and source address

WordPress+Flutter development APP tutorial: 1. Description – WordPress Code Base

Guess you like

Origin blog.csdn.net/qq_22502303/article/details/125180952