Codenic Clean Architecture
  • Introduction
  • The Clean Architecture
    • Presentation Layer
    • Domain Layer
    • Infrastructure Layer
  • Tutorial
    • Overview
    • Creating a Flutter Modular Project
      • Tips for Managing a Modular Project
    • Implementing the Domain Layer
      • Core Dependencies
      • Creating an Entity
      • Creating a Failure
      • Creating a Repository Interface
      • Creating Use Cases
        • CRUD Operations (Runner)
        • Data Streams (Watcher)
    • Implementing the Infrastructure Layer
      • External Dependencies
      • Creating a Data Model
      • Creating a Data Source
      • Implementing a Repository
    • Implementing the Presentation Layer
      • External Dependencies
      • Dependency Injection and Service Locator
      • Widgets
        • Snackbar Handler
        • Global Blocs Widget
        • Note Widgets
  • Packages
    • Codenic Bloc Use Case
      • Runner
      • Watcher
    • Codenic Logger
      • Usage
      • Example
      • Modifying the Logger
      • Integrating Firebase Crashlytics to the logger
    • Codenic Exception Converter
      • Failure Object
      • Exception Converter
      • Exception Converter Suite
      • Example
Powered by GitBook
On this page

The Clean Architecture

This architecture has 3 layers, namely: Presentation, Domain and Infrastructure.

PreviousIntroductionNextPresentation Layer

Last updated 2 years ago

The clean architecture is a design pattern for organizing code in a way that separates the different concerns of an application. It aims to improve maintainability, stability, and adaptability to code changes by decoupling the different parts of the application into distinct layers.

Layer
Description

Responsible for managing the UI and all user interactions in the application.

Defines the business objects, specifications and use cases of the application. This also serves as a communication bridge between the Presentation and Infrastructure Layers.

Deals with the APIs, databases and other infrastructure-related dependency integrations in the system.

Presentation
Domain
Infrastructure
Codenic Clean Architecture