Structure
Aurora start from the lib folder. The lib folder contains the following folders and files:
-
main.dartis the main file of the application. It contains themainfunction that is the entry point of the flutter application. -
srcfolder contains the source code of application that related to build the UI and the business logic of the application. -
servicesfolder contains the source code of application that related to the services of the application in root Domain layer.
lib
├── main.dart
├── src
├── servicesmain.dart
The main.dart is the main file of the application. It contains the main function that is the entry point of the flutter application.
services
The services folder contains the source code of application that related to the services of the application in root Domain layer. It is the place where we can put the services that are used in the application at the root Domain layer.
Every service have its own folder. The folder name is the name of the service. The folder contains the files that related to the service.
services
├── service_name
│ ├── contants
│ ├── extention
│ ├── models
│ ├── helpers
│ ├── providersFor more information about the services, please refer to Services
src
The src folder contains the source code of application that related to build the UI and the business logic of the application. It is the place where we can put the source code of the application.
It contains the following folders:
-
globalfolder contains the source code of application that related to the global level of the application. -
pagesfolder contains the source code of application that related to the pages of the application. Mainly, it contains the source code of the application's UI. -
servicesfolder contains the source code of application that related to the services of the application.
src
├── global
├── pages
├── servicesFor more information about the services, please refer to src