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 Infrastructure Layer

External Dependencies

PreviousImplementing the Infrastructure LayerNextCreating a Data Model

Last updated 2 years ago

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

dependencies:
  flutter_lorem: {{LATEST_VERSION}}
  json_annotation: {{LATEST_VERSION}}
  sqlbrite: {{LATEST_VERSION}}

dev_dependencies:
  build_runner: {{LATEST_VERSION}}
  json_serializable: {{LATEST_VERSION}}

Here's an overview of the packages:

  • A package used for generating the test note entries when the application is first launched.

  • This package enables us to write, read and stream our note entries in a local SQL database.

  • , and A suite of packages for serializing and deserializing our note data model into JSON.

Fetch the dependencies:

flutter pub get modules/infrastructure

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

flutter_lorem
sqlbrite
json_annotation
json_serializable
build_runner
script