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
  1. Tutorial

Implementing the Presentation Layer

PreviousImplementing a RepositoryNextExternal Dependencies

Last updated 2 years ago

In this section, we will implement a service locator to access the dependencies and create UI widgets for the user to interact with.

The following topics will be covered:

Before you begin

  • Make sure you have the accomplished the following steps:

A. External Dependencies

We'll import a few dependencies for creating a service locator, implementing pagination and integrating BLoC.

B. Dependency Injection and Service Locator

We'll initialize the service locator and all dependencies in the app main entry point.

C. Flutter Widgets

We'll create the app widgets for writing and displaying notes to the user.

Creating the Flutter project
Implementing the Domain Layer
Implementing the Infrastructure Layer