Core Dependencies

1. Add the dependencies

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

    codenic_bloc_use_case: {{LATEST_VERSION}}
    codenic_exception_converter: {{LATEST_VERSION}}

Here's an overview of the packages:

Fetch the dependencies:

flutter pub get modules/domain

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

2. Add the shared dependencies to the barrel file

On the note_app/modules/domain/lib/domain.dart barrel file, export the packages to share them with the dependent modules:

export 'package:codenic_bloc_use_case/codenic_bloc_use_case.dart';
export 'package:codenic_exception_converter/codenic_exception_converter.dart';

Last updated