# Provider, MultiProvider và context.watch

> provider dựng trên InheritedWidget, MultiProvider ở composition root, và bốn cách đọc: watch, read, select, Consumer.

- URL: https://dantech.academy/courses/flutter-mobile-101/04-provider-di/lesson-01-provider-package-basics
- Khóa học: [Flutter Mobile 101](https://dantech.academy/courses/flutter-mobile-101.md)
- Module: Provider Và Dependency Injection
- Thời lượng: 16 phút
- Độ khó: beginner
- Truy cập: Dành cho học viên

## Mục tiêu

- Hiểu provider dựng trên InheritedWidget và bọc app một lần ở composition root
- Phân biệt context.watch, context.read, context.select và Consumer, biết dùng cái nào ở đâu

## Nội dung bài học

1. Flutter Đã Có Sẵn Câu Trả Lời
2. Bọc App Một Lần
3. Diff Thật: Trước Và Sau
4. Bốn Cách Đọc, Và Chỗ Dùng Của Từng Cách
5. Hai Bẫy Kinh Điển

## Học cùng AI agent

Toàn bộ bài học dành cho học viên của khóa. Học viên mở bài trên web và bấm nút **Markdown** để copy toàn bài, rồi dán vào Claude, ChatGPT, Cursor hoặc agent bạn đang dùng. Nhanh hơn: tạo token ở `/profile/ai-agents` và agent đọc bài trực tiếp qua MCP.

- [Đăng ký khóa học](https://dantech.academy/flutter-mobile-101/checkout)

---

- Bài trước: [ChangeNotifier và ListenableBuilder](https://dantech.academy/courses/flutter-mobile-101/03-mvvm/lesson-03-viewmodel-with-changenotifier.md)
- Bài tiếp theo: [Dependency injection và composition root](https://dantech.academy/courses/flutter-mobile-101/04-provider-di/lesson-02-injecting-dependencies.md)
