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
  2. Implementing the Presentation Layer

External Dependencies

PreviousImplementing the Presentation LayerNextDependency Injection and Service Locator

Last updated 2 years ago

Let's add the following dependencies in our presentation's pubspec.yaml

In the note_app/modules/presentation/ directory, include the following dependencies in the pubspec.yaml:

dependencies:
  flutter_bloc: {{LATEST_VERSION}}
  get_it: {{LATEST_VERSION}}
  infinite_scroll_pagination: {{LATEST_VERSION}}

Here's an overview of the packages:

  • The package for integrating our (based on BLoC Cubits) to our Flutter app.

  • This package will enable us to inject our dependencies via a Service Locator.

  • This package provides a set of widgets for implementing note pagination more conveniently.

Fetch the dependencies:

flutter pub get modules/presentation

Tip: You can use a to fetch the dependencies for all submodules in one go.

flutter_bloc
Use Cases
get_it
infinite_scroll_pagination
script