Skip to main content
← Chapter 3: Dependency Management in Dart Lesson 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.

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. For example, add the http package with dart pub add http and import it with import 'package:http/http.dart' as http;.

Resources