# 3.1 Understanding Dependency Management

> Dependency management is an integral part of modern programming. It is a process of managing the dependencies of a project. A dependency is a piece of code that is required by the project to run. It can be a library, a framework, a tool, or any other piece of code that is required by the project to run.

- URL: https://www.appwriters.dev/courses/master-flutter/ch03-dependency-management/ls01-understanding-dependency-management
- Course: Master Flutter (https://www.appwriters.dev/courses/master-flutter)
- Chapter: 3. Dependency Management in Dart

---

Dependency management is an integral part of modern programming. It is a process of managing the dependencies of a project. A dependency is a piece of code that is required by the project to run. It can be a library, a framework, a tool, or any other piece of code that is required by the project to run.

## Projects

### 1. Pub CLI

Create a simple program that uses the pub command-line tool to add, remove, and list the dependencies of your project (`dart pub add`, `dart pub remove` and `dart pub deps`). This project will help you understand the basics of using pub to manage the dependencies of your Dart project.

### 2. Using Dependency

Create a simple program that uses the `package:` URI syntax to import and use a package from the Dart package repository, [pub.dev](https://pub.dev). For example, add the `http` package with `dart pub add http` and import it with `import 'package:http/http.dart' as http;`.

## Resources

- [Dart dependencies](https://dart.dev/tools/pub/dependencies)
- [How to use packages](https://dart.dev/tools/pub/packages)
- [pub CLI](https://dart.dev/tools/pub/cmd)
- [Dart dependency management](https://medium.com/@santiagorhenals/dart-packages-dependency-management-in-flutter-43daeabab4be)
- [Flutter & Dart Package repository](https://pub.dev)
