Skip to content

novoyova/flutter-project-structure

Repository files navigation

Project Structure

Flutter project structure example for big project.

Feature First Structure

Source: Lambda Dev

.
├── assets/
│   ├── icons/
│   │   └── ...
│   ├── translations/
│   │   └── ...
│   └── ...
├── integration_test/
│   └── ...
├── lib/
│   ├── core/
│   │   ├── presentation/
│   │   │   ├── dialog
│   │   │   ├── widgets
│   │   │   ├── theme.dart
│   │   │   └── ...
│   │   ├── services/
│   │   │   └── ...
│   │   ├── config.dart
│   │   ├── constants.dart
│   │   ├── extensions.dart
│   │   ├── formatters.dart
│   │   └── ...
│   ├── features/
│   │   ├── settings/
│   │   │   ├── settings.dart
│   │   │   ├── settings_controller.dart
│   │   │   ├── settings_page.dart
│   │   │   ├── settings_repository.dart
│   │   │   └── ...
│   │   ├── user/
│   │   │   ├── user.dart
│   │   │   ├── user_controller.dart
│   │   │   ├── user_model.dart
│   │   │   ├── user_page.dart
│   │   │   ├── user_repository.dart
│   │   │   ├── user_service.dart
│   │   │   └── ...
│   │   └── ...
│   ├── ...
│   └── main.dart
└── test/
    └── ...

Clean Feature First Structure

Source: Reso Coder

.
├── assets/
│   ├── icons/
│   │   └── ...
│   ├── translations/
│   │   └── ...
│   └── ...
├── integration_test/
│   └── ...
├── lib/
│   ├── config/
│   │   ├── routes/
│   │   │   └── ...
│   │   ├── theme/
│   │   │   └── ...
│   │   └── ...
│   ├── core/
│   │   ├── errors/
│   │   │   └── ...
│   │   ├── network/
│   │   │   └── ...
│   │   ├── usecases/
│   │   │   └── ...
│   │   ├── utils/
│   │   │   └── ...
│   │   └── ...
│   ├── features/
│   │   ├── auth/
│   │   │   ├── data/
│   │   │   │   ├── datasources/
│   │   │   │   │   └── ...
│   │   │   │   ├── models/
│   │   │   │   │   └── ...
│   │   │   │   └── repositories/
│   │   │   │       └── ...
│   │   │   ├── domain/
│   │   │   │   ├── entities/
│   │   │   │   │   └── ...
│   │   │   │   ├── repositories/
│   │   │   │   │   └── ...
│   │   │   │   └── usecases/
│   │   │   │       └── ...
│   │   │   └── presentation/
│   │   │       ├── bloc/
│   │   │       │   └── ...
│   │   │       ├── pages/
│   │   │       │   └── ...
│   │   │       └── widgets/
│   │   │           └── ...
│   │   ├── cart/
│   │   │   ├── data/
│   │   │   │   ├── datasources/
│   │   │   │   │   ├── local/
│   │   │   │   │   │   └── ...
│   │   │   │   │   └── remote/
│   │   │   │   │       └── ...
│   │   │   │   ├── models/
│   │   │   │   │   └── ...
│   │   │   │   └── repositories/
│   │   │   │       └── ...
│   │   │   ├── domain/
│   │   │   │   ├── entities/
│   │   │   │   │   └── ...
│   │   │   │   ├── repositories/
│   │   │   │   │   └── ...
│   │   │   │   └── usecases/
│   │   │   │       └── ...
│   │   │   └── presentation/
│   │   │       ├── bloc/
│   │   │       │   └── ...
│   │   │       ├── pages/
│   │   │       │   └── ...
│   │   │       └── widgets/
│   │   │           └── ...
│   │   └── ...
│   ├── ...
│   └── main.dart
└── test/
    └── ...

About

Flutter project structure example for big project.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published